http: make HTTP server support configurable
This allows to configure the local files streaming option per-connection. It defaults to enabled.
This commit is contained in:
@@ -71,6 +71,12 @@ HttpServer::HttpServer()
|
||||
connect(MPDConnection::self(), SIGNAL(ifaceIp(QString)), this, SLOT(ifaceIp(QString)));
|
||||
}
|
||||
|
||||
bool HttpServer::isAlive() const
|
||||
{
|
||||
// started on demand, but only start if allowed
|
||||
return Settings::self()->connectionDetails().allowLocalStreaming;
|
||||
}
|
||||
|
||||
bool HttpServer::start()
|
||||
{
|
||||
if (closeTimer) {
|
||||
|
||||
Reference in New Issue
Block a user