Skip to content

Commit

Permalink
Controller: Fix port conditions (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads authored Jan 17, 2025
1 parent 2f7125b commit 7a20c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7a20c24

Please sign in to comment.