Fix AudioCD playback when MPD's curl is using IPv6

This commit is contained in:
Craig Drummond
2016-06-03 16:30:33 +01:00
committed by Craig Drummond
parent 73d5cf3a1c
commit 7546ec45e2
2 changed files with 2 additions and 1 deletions

View File

@@ -275,7 +275,7 @@ void HttpSocket::readClient()
QString peer=socket->peerAddress().toString();
QString ifaceAddress=serverAddress().toString();
bool hostOk=peer==ifaceAddress || peer==mpdAddr || peer==QLatin1String("127.0.0.1");
bool hostOk=peer==ifaceAddress || peer==mpdAddr || peer==QLatin1String("127.0.0.1") || peer==QLatin1String("::ffff:127.0.0.1");
DBUG << "peer:" << peer << "mpd:" << mpdAddr << "iface:" << ifaceAddress << "ok:" << hostOk;
if (!hostOk) {