diff options
| author | 2009-03-10 10:56:39 +0000 | |
|---|---|---|
| committer | 2009-03-10 10:56:39 +0000 | |
| commit | 884e06c778ae60054215305083d4868a2c2de811 (patch) | |
| tree | eb63632ddb41db1ce10c574684c411d8bb3c6e4f /src/modules/ident | |
| parent | preliminary patch for #393 (wip) (diff) | |
| download | KVIrc-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/ident')
| -rw-r--r-- | src/modules/ident/libkviident.cpp | 9 |
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); |
