From f7d751520cd72d6edc889fbbc16b3effdf4cc6f4 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 10 Mar 2009 09:54:41 +0000 Subject: preliminary patch for #393 (wip) git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3122 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/ident/libkviident.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/modules') diff --git a/src/modules/ident/libkviident.cpp b/src/modules/ident/libkviident.cpp index 3d4f26ddb..9050bfa56 100644 --- a/src/modules/ident/libkviident.cpp +++ b/src/modules/ident/libkviident.cpp @@ -271,6 +271,15 @@ void KviIdentDaemon::run() goto ipv6_failure; } + #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) + // under windows, we need to set the socket to be reachable from the outer internet + // see bug ticket #393 + if(!kvi_socket_setsockopt(m_sock6,KVI_SOCKET_PF_INET6,KVI_IPV6_PROTECTION_LEVEL,&(int){ KVI_PROTECTION_LEVEL_UNRESTRICTED }, sizeof(int)) + { + //this is not a fatal error + postMessage(__tr("Can't set the IPv6 ident service protection level to unrestricted: the ident service won't be exposed to the internet"),0); + } + #endif if(!sa6.socketAddress()) { postMessage(__tr("Can't enable the ident service on IPv6 : can't setup the listen address"),0); -- cgit v1.3.1-10-gc9f91