From eaee38a19e9184eefd0afed467199ca48eed893a Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Thu, 13 Apr 2023 06:22:18 +0300 Subject: [PATCH] Disable UPnP for web UI by default PR #18832. --- src/base/preferences.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/base/preferences.cpp b/src/base/preferences.cpp index a46d96161..5cbbce647 100644 --- a/src/base/preferences.cpp +++ b/src/base/preferences.cpp @@ -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)