Account for PTR answers in mdns_client

En passant, ResponseA -> the more versatile Response.
This commit is contained in:
Michael Bridgen committed 2015-01-08 18:30:30 +00:00
1 parent e9b84c968d
commit 89fa52818c
3 files changed
+72 -45

No files matched your search

+2 -2
View File
@@ -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)