Skip to content

Commit

Permalink
Disable UPnP for web UI by default
Browse files Browse the repository at this point in the history
PR #18832.
  • Loading branch information
glassez committed Apr 13, 2023
1 parent 70a2d7b commit 2b4fcda
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/base/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,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)
Expand Down

0 comments on commit 2b4fcda

Please sign in to comment.