Remove domainname from mDNS service name.

This commit is contained in:
Andreas 2013-02-19 16:29:45 +01:00 committed by John Maguire
parent 315fcb05c4
commit ebd2b1ecba
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ void NetworkRemote::StartServer() {
qLog(Info) << "Listening on port " << port_;
if (Zeroconf::GetZeroconf()) {
QString name = QString("Clementine on %1 (%2)").arg(QHostInfo::localHostName())
.arg(QHostInfo::localDomainName());
QString name = QString("Clementine on %1").arg(QHostInfo::localHostName());
Zeroconf::GetZeroconf()->Publish(
"local", "_clementine._tcp", name, port_);
}