Browse Source

Disable UPnP for web UI by default

PR #18832.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
eaee38a19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/preferences.cpp

4
src/base/preferences.cpp

@ -589,11 +589,7 @@ void Preferences::setWebUiPort(const quint16 port) @@ -589,11 +589,7 @@ void Preferences::setWebUiPort(const quint16 port)
bool Preferences::useUPnPForWebUIPort() const
{
#ifdef DISABLE_GUI
return value(u"Preferences/WebUI/UseUPnP"_qs, true);
#else
return value(u"Preferences/WebUI/UseUPnP"_qs, false);
#endif
}
void Preferences::setUPnPForWebUIPort(const bool enabled)

Loading…
Cancel
Save