Use QUrl with server details to build HTTP address used to compare MPD http file paths against.
This commit is contained in:
committed by
craig.p.drummond
parent
1681e5db32
commit
16777a3954
@@ -131,8 +131,7 @@ void HttpServer::readConfig()
|
||||
|
||||
QString HttpServer::address() const
|
||||
{
|
||||
return socket ? QLatin1String("http://")+socket->address()+QChar(':')+QString::number(socket->serverPort())
|
||||
: QLatin1String("http://127.0.0.1:*");
|
||||
return socket ? socket->urlAddress() : QLatin1String("http://127.0.0.1:*");
|
||||
}
|
||||
|
||||
bool HttpServer::isOurs(const QString &url) const
|
||||
|
||||
Reference in New Issue
Block a user