diff --git a/ChangeLog b/ChangeLog index ed910e8e8..499d9fc26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,7 @@ ARTIST_IMAGE_SUPPORT sections for removed code. 26. When adding tracks via commandline, only play if queue is currently empty, otherwise just append new tracks. +27. If hostname starts with a at (@) treat as local socket. 2.3.3 ----- diff --git a/mpd-interface/mpdconnection.h b/mpd-interface/mpdconnection.h index 0793abff6..3697940c0 100644 --- a/mpd-interface/mpdconnection.h +++ b/mpd-interface/mpdconnection.h @@ -144,7 +144,7 @@ struct MPDConnectionDetails { MPDConnectionDetails(const MPDConnectionDetails &o) { *this=o; } QString getName() const; QString description() const; - bool isLocal() const { return hostname.startsWith('/'); } + bool isLocal() const { return hostname.startsWith('/') || hostname.startsWith('@'); } bool isEmpty() const { return hostname.isEmpty() || (!isLocal() && 0==port); } MPDConnectionDetails & operator=(const MPDConnectionDetails &o); bool operator==(const MPDConnectionDetails &o) const { return hostname==o.hostname && isLocal()==o.isLocal() && (isLocal() || port==o.port) && password==o.password; }