X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=1ff4adabb7fa95d377a826d9c31ac7f68b4a2d93;hp=cf943b98e438d1a50fb0e3b377600c42596d3b2c;hb=9451580d19875b23ec52af64585496efb7268e0f;hpb=42e72feaf6246372fba0384e65dd8139e6132983 diff --git a/src/core/core.cpp b/src/core/core.cpp index cf943b98..1ff4adab 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -221,6 +221,11 @@ bool Core::init() if (Quassel::isOptionSet("oidentd")) { _oidentdConfigGenerator = new OidentdConfigGenerator(this); } + + + if (Quassel::isOptionSet("ident-daemon")) { + _identServer = new IdentServer(_strictIdentEnabled, this); + } Quassel::registerReloadHandler([]() { // Currently, only reloading SSL certificates and the sysident cache is supported @@ -665,12 +670,16 @@ bool Core::startListening() if (!success) quError() << qPrintable(tr("Could not open any network interfaces to listen on!")); + if (_identServer != nullptr) _identServer->startListening(); + return success; } void Core::stopListening(const QString &reason) { + if (_identServer != nullptr) _identServer->stopListening(reason); + bool wasListening = false; if (_server.isListening()) { wasListening = true;