projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
identd: Initial draft of integrated ident daemon
[quassel.git]
/
src
/
core
/
core.cpp
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
cf943b9
..
1ff4ada
100644
(file)
--- 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("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
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 (!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)
{
return success;
}
void Core::stopListening(const QString &reason)
{
+ if (_identServer != nullptr) _identServer->stopListening(reason);
+
bool wasListening = false;
if (_server.isListening()) {
wasListening = true;
bool wasListening = false;
if (_server.isListening()) {
wasListening = true;