mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
FEATURE: Added UPnP/NAT-PMP port forward for the Web UI port
This commit is contained in:
@@ -706,6 +706,14 @@ public:
|
||||
setValue("Preferences/WebUI/Port", port);
|
||||
}
|
||||
|
||||
bool useUPnPForWebUIPort() const {
|
||||
return value("Preferences/WebUI/UseUPnP", true).toBool();
|
||||
}
|
||||
|
||||
void setUPnPForWebUIPort(bool enabled) {
|
||||
setValue("Preferences/WebUI/UseUPnP", enabled);
|
||||
}
|
||||
|
||||
QString getWebUiUsername() const {
|
||||
return value("Preferences/WebUI/Username", "admin").toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user