From 7a20c244ab785c5b24ee5738a9626e6b88ac7ac8 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 17 Jan 2025 16:29:54 +0200 Subject: [PATCH] Controller: Fix port conditions (#408) --- src/controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index 08358a9bf2..ca942dc46f 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -1163,11 +1163,11 @@ namespace drachtio { } } - if (m_adminTcpPort && !m_adminTlsPort) { + if (adminTcpPort && !adminTlsPort) { DR_LOG(log_notice) << "DrachtioController::run listening for applications on tcp port " << adminTcpPort << " only"; m_pClientController.reset(new ClientController(this, adminAddress, adminTcpPort)); } - else if (!m_adminTcpPort && m_adminTlsPort) { + else if (!adminTcpPort && adminTlsPort) { DR_LOG(log_notice) << "DrachtioController::run listening for applications on tls port " << adminTlsPort << " only"; m_pClientController.reset(new ClientController(this, adminAddress, adminTlsPort, tlsChainFile, tlsCertFile, tlsKeyFile, dhParam)); }