aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/ident
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-03-13 12:31:11 +0000
committerGravatar Fabio Bas2009-03-13 12:31:11 +0000
commitb13a05a45d40acac4ae255b48282190ff4079391 (patch)
tree726ccca9b849cd347e0da02bfde56f4e8aefdb6d /src/modules/ident
parentpatch for #396 (diff)
downloadKVIrc-b13a05a45d40acac4ae255b48282190ff4079391.tar.gz
KVIrc-b13a05a45d40acac4ae255b48282190ff4079391.tar.bz2
KVIrc-b13a05a45d40acac4ae255b48282190ff4079391.zip
reworked patch for #393
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3126 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/ident')
-rw-r--r--src/modules/ident/libkviident.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/ident/libkviident.cpp b/src/modules/ident/libkviident.cpp
index cf7a69adf..bbfd7afeb 100644
--- a/src/modules/ident/libkviident.cpp
+++ b/src/modules/ident/libkviident.cpp
@@ -277,7 +277,8 @@ void KviIdentDaemon::run()
* 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)))
+ int iPlu = KVI_PROTECTION_LEVEL_UNRESTRICTED;
+ if(!kvi_socket_setsockopt(m_sock6,KVI_IPPROTO_IPV6,KVI_IPV6_PROTECTION_LEVEL,(const void*)&iPlu, 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);