Fix incorrect port numbers being registered for services on macOS.
Per https://developer.apple.com/documentation/dnssd/1804733-dnsserviceregister, DNSServiceRegister() takes the port number in network byte order. This fixes the bug with wrong ports being registered on macOS.
This commit is contained in:
parent
3622bfaaad
commit
6a07f706cf
|
@ -56,7 +56,7 @@ impl ManagedDNSServiceRef {
|
||||||
regtype,
|
regtype,
|
||||||
domain,
|
domain,
|
||||||
host,
|
host,
|
||||||
port,
|
port.to_be(),
|
||||||
txt_len,
|
txt_len,
|
||||||
txt_record,
|
txt_record,
|
||||||
callback,
|
callback,
|
||||||
|
|
Loading…
Reference in New Issue