mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
[mdns] Fix possible incorrect library ID in _dacp._tcp (fixes #899)
If the library ID started with one or more 0's then it would not be printed in the announcement, which meant that DACP commands would not work due to incorrect ID.
This commit is contained in:
parent
eb049489b4
commit
37510db748
@ -313,7 +313,7 @@ register_services(char *ffid, bool no_web, bool no_rsp, bool no_daap, bool no_mp
|
||||
// otherwise at least my Sony speaker won't use the service.
|
||||
|
||||
// Use as scratch space for the hash
|
||||
snprintf(records[4], 128, "iTunes_Ctrl_%" PRIX64, libhash);
|
||||
snprintf(records[4], 128, "iTunes_Ctrl_%016" PRIX64, libhash);
|
||||
|
||||
ret = mdns_register(records[4], "_dacp._tcp", port, txtrecord);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user