Remove domainname from mDNS service name.
This commit is contained in:
parent
315fcb05c4
commit
ebd2b1ecba
|
@ -92,8 +92,7 @@ void NetworkRemote::StartServer() {
|
||||||
qLog(Info) << "Listening on port " << port_;
|
qLog(Info) << "Listening on port " << port_;
|
||||||
|
|
||||||
if (Zeroconf::GetZeroconf()) {
|
if (Zeroconf::GetZeroconf()) {
|
||||||
QString name = QString("Clementine on %1 (%2)").arg(QHostInfo::localHostName())
|
QString name = QString("Clementine on %1").arg(QHostInfo::localHostName());
|
||||||
.arg(QHostInfo::localDomainName());
|
|
||||||
Zeroconf::GetZeroconf()->Publish(
|
Zeroconf::GetZeroconf()->Publish(
|
||||||
"local", "_clementine._tcp", name, port_);
|
"local", "_clementine._tcp", name, port_);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue