aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-03-10 10:56:39 +0000
committerGravatar Fabio Bas2009-03-10 10:56:39 +0000
commit884e06c778ae60054215305083d4868a2c2de811 (patch)
treeeb63632ddb41db1ce10c574684c411d8bb3c6e4f /src/modules
parentpreliminary patch for #393 (wip) (diff)
downloadKVIrc-884e06c778ae60054215305083d4868a2c2de811.tar.gz
KVIrc-884e06c778ae60054215305083d4868a2c2de811.tar.bz2
KVIrc-884e06c778ae60054215305083d4868a2c2de811.zip
final patch for #393
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3123 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/ident/libkviident.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/ident/libkviident.cpp b/src/modules/ident/libkviident.cpp
index 9050bfa56..cf7a69adf 100644
--- a/src/modules/ident/libkviident.cpp
+++ b/src/modules/ident/libkviident.cpp
@@ -272,9 +272,12 @@ void KviIdentDaemon::run()
}
#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))
+ /*
+ * under windows, ipv6 hosts behind an ipv4 NAT can use Teredo to be reachable from the outer internet using their
+ * ipv6 address; the default protection level doesn't permit this, so we need to set this socket option
+ * see bug ticket #393
+ */
+ if(!kvi_socket_setsockopt(m_sock6,KVI_SOCKET_PF_INET6,KVI_IPV6_PROTECTION_LEVEL,(const void*)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);