Account for PTR answers in mdns_client
En passant, ResponseA -> the more versatile Response.
This commit is contained in:
1 parent
e9b84c968d
commit
89fa52818c
3 files changed
+72
-45
No files matched your search
@@ -6,8 +6,8 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
func mdnsLookup(client *MDNSClient, name string, qtype uint16) (*ResponseA, error) {
|
||||
channel := make(chan *ResponseA)
|
||||
func mdnsLookup(client *MDNSClient, name string, qtype uint16) (*Response, error) {
|
||||
channel := make(chan *Response)
|
||||
client.SendQuery(name, qtype, channel)
|
||||
for resp := range channel {
|
||||
Debug.Printf("Got response name %s addr %s", resp.Name, resp.Addr)
|
||||
|
||||
Reference in new issue
Block a user