X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=5818e2fb720fe85c726d4a12a47f5dd8550048be;hp=cf943b98e438d1a50fb0e3b377600c42596d3b2c;hb=37110ceaa070167b4f40ed449ac9ea130503a792;hpb=dc11e24b95e5b5e3595cc0e98eb2a572006912c7 diff --git a/src/core/core.cpp b/src/core/core.cpp index cf943b98..5818e2fb 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -26,8 +26,8 @@ #include "coreauthhandler.h" #include "coresession.h" #include "coresettings.h" -#include "logger.h" #include "internalpeer.h" +#include "logmessage.h" #include "network.h" #include "postgresqlstorage.h" #include "quassel.h" @@ -222,6 +222,11 @@ bool Core::init() _oidentdConfigGenerator = new OidentdConfigGenerator(this); } + + if (Quassel::isOptionSet("ident-daemon")) { + _identServer = new IdentServer(this); + } + Quassel::registerReloadHandler([]() { // Currently, only reloading SSL certificates and the sysident cache is supported if (Core::instance()) { @@ -665,12 +670,20 @@ bool Core::startListening() if (!success) quError() << qPrintable(tr("Could not open any network interfaces to listen on!")); + if (_identServer) { + _identServer->startListening(); + } + return success; } void Core::stopListening(const QString &reason) { + if (_identServer) { + _identServer->stopListening(reason); + } + bool wasListening = false; if (_server.isListening()) { wasListening = true;