From b13a05a45d40acac4ae255b48282190ff4079391 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 13 Mar 2009 12:31:11 +0000 Subject: reworked patch for #393 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3126 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/ident/libkviident.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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); -- cgit v1.3.1-10-gc9f91