Introduce a 'change listen port' cmd option

Closes #17789.
PR #17862.
This commit is contained in:
BallsOfSpaghetti
2022-10-25 06:43:38 +02:00
committed by GitHub
parent f2dd1e6456
commit fdba525e62
3 changed files with 21 additions and 0 deletions

View File

@@ -196,6 +196,12 @@ Application::Application(int &argc, char **argv)
if (m_commandLineArgs.webUiPort > 0) // it will be -1 when user did not set any value
Preferences::instance()->setWebUiPort(m_commandLineArgs.webUiPort);
if (m_commandLineArgs.torrentingPort > 0) // it will be -1 when user did not set any value
{
SettingValue<int> port {u"BitTorrent/Session/Port"_qs};
port = m_commandLineArgs.torrentingPort;
}
}
Application::~Application()