From 89db85625af1f95cd62e4f5ae9aedf0ce20e9d59 Mon Sep 17 00:00:00 2001 From: Janne Koschinski Date: Tue, 8 May 2018 17:44:25 +0200 Subject: [PATCH] identd: Implement --ident-port option --- src/common/main.cpp | 2 +- src/core/identserver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/main.cpp b/src/common/main.cpp index cedd3c35..199f175c 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -192,7 +192,7 @@ int main(int argc, char **argv) cliParser->addOption("oidentd-conffile", 0, "Set path to oidentd configuration file", "file"); cliParser->addSwitch("strict-ident", 0, "Use users' quasselcore username as ident reply. Ignores each user's configured ident setting."); cliParser->addSwitch("ident-daemon", 0, "Enable internal ident daemon"); - cliParser->addOption("ident-port", 'p', "The port quasselcore will listen at for ident requests. Only meaningful with --ident-daemon", "port", "10113"); + cliParser->addOption("ident-port", 0, "The port quasselcore will listen at for ident requests. Only meaningful with --ident-daemon", "10113"); #ifdef HAVE_SSL cliParser->addSwitch("require-ssl", 0, "Require SSL for remote (non-loopback) client connections"); cliParser->addOption("ssl-cert", 0, "Specify the path to the SSL Certificate", "path", "configdir/quasselCert.pem"); diff --git a/src/core/identserver.cpp b/src/core/identserver.cpp index 08b1b677..ffb2f150 100644 --- a/src/core/identserver.cpp +++ b/src/core/identserver.cpp @@ -32,7 +32,7 @@ IdentServer::IdentServer(bool strict, QObject *parent) : QObject(parent), _stric IdentServer::~IdentServer() = default; bool IdentServer::startListening() { - uint16_t port = 10113; + uint16_t port = Quassel::optionValue("ident-port").toUShort(); bool success = false; if (_v6server.listen(QHostAddress("::1"), port)) { -- 2.20.1