Skip to content

Commit

Permalink
Different temporary ports for backend and frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarta committed Mar 22, 2021
1 parent bd8faa7 commit bf9fa3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mythtv/libs/libmythbase/http/mythhttpserver.cpp
Expand Up @@ -128,11 +128,19 @@ void MythHTTPServer::Init()
m_config.m_port = static_cast<uint16_t>(gCoreContext->GetNumSetting("UPnP/MythFrontend/ServicePort", 6547));
// I don't think there is an existing setting for this
m_config.m_sslPort = static_cast<uint16_t>(gCoreContext->GetNumSetting("FrontendSSLPort", m_config.m_port + 10));

// TEMPORARY
m_config.m_port = 8081;
m_config.m_sslPort = 8091;
}
else if (gCoreContext->IsBackend())
{
m_config.m_port = static_cast<uint16_t>(gCoreContext->GetBackendStatusPort());
m_config.m_sslPort = static_cast<uint16_t>(gCoreContext->GetNumSetting("BackendSSLPort", m_config.m_port + 10));

// TEMPORARY
m_config.m_port = m_config.m_port + 200;
m_config.m_sslPort = m_config.m_sslPort + 200;
}
else
{
Expand All @@ -141,10 +149,6 @@ void MythHTTPServer::Init()
m_config.m_sslPort = 0;
}

// TEMPORARY
m_config.m_port = 8081;
m_config.m_sslPort = 8091;

// If this fails, unset the SSL port
#ifndef QT_NO_OPENSSL
if (!MythHTTPS::InitSSLServer(m_config.m_sslConfig))
Expand Down

0 comments on commit bf9fa3a

Please sign in to comment.