FEATURE: Added option to bypass Web UI authentication for localhost

This commit is contained in:
Christophe Dumez 2011-02-27 09:34:42 +00:00
commit 8b9971003d
41 changed files with 2772 additions and 2605 deletions

View file

@ -579,6 +579,7 @@ void QBtSession::initWebUi() {
httpServer = new HttpServer(3000, this);
}
httpServer->setAuthorization(username, password);
httpServer->setlocalAuthEnabled(pref.isWebUiLocalAuthEnabled());
if(!httpServer->isListening()) {
bool success = httpServer->listen(QHostAddress::Any, port);
if (success)