FEATURE: Added UPnP/NAT-PMP port forward for the Web UI port

This commit is contained in:
Christophe Dumez
2011-04-12 19:50:05 +00:00
parent aec3087528
commit da32321f10
6 changed files with 85 additions and 57 deletions

View File

@@ -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();
}