Make the identd listen on all addresses
authorJanne Koschinski <janne@kuschku.de>
Wed, 2 Jan 2019 16:22:13 +0000 (17:22 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2019 19:27:02 +0000 (20:27 +0100)
src/core/identserver.cpp

index e49054e..1d634d8 100644 (file)
@@ -37,20 +37,20 @@ bool IdentServer::startListening()
     uint16_t port = Quassel::optionValue("ident-port").toUShort();
 
     bool success = false;
     uint16_t port = Quassel::optionValue("ident-port").toUShort();
 
     bool success = false;
-    if (_v6server.listen(QHostAddress("::1"), port)) {
+    if (_v6server.listen(QHostAddress("::"), port)) {
         quInfo() << qPrintable(
                 tr("Listening for identd clients on IPv6 %1 port %2")
         quInfo() << qPrintable(
                 tr("Listening for identd clients on IPv6 %1 port %2")
-                        .arg("::1")
+                        .arg("::")
                         .arg(_v6server.serverPort())
         );
 
         success = true;
     }
 
                         .arg(_v6server.serverPort())
         );
 
         success = true;
     }
 
-    if (_server.listen(QHostAddress("127.0.0.1"), port)) {
+    if (_server.listen(QHostAddress("0.0.0.0"), port)) {
         quInfo() << qPrintable(
                 tr("Listening for identd clients on IPv4 %1 port %2")
         quInfo() << qPrintable(
                 tr("Listening for identd clients on IPv4 %1 port %2")
-                        .arg("127.0.0.1")
+                        .arg("0.0.0.0")
                         .arg(_server.serverPort())
         );
 
                         .arg(_server.serverPort())
         );