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:
Nebojsa Sabovic 2021-09-02 10:19:04 +02:00
parent 3622bfaaad
commit 6a07f706cf
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ impl ManagedDNSServiceRef {
regtype,
domain,
host,
port,
port.to_be(),
txt_len,
txt_record,
callback,