Merge pull request #48 from stapelberg/master
Expose rr.Txt as []string instead of joining it with “|”.
This commit is contained in:
commit
9d85cf22f9
14
client.go
14
client.go
@ -15,12 +15,13 @@ import (
|
|||||||
|
|
||||||
// ServiceEntry is returned after we query for a service
|
// ServiceEntry is returned after we query for a service
|
||||||
type ServiceEntry struct {
|
type ServiceEntry struct {
|
||||||
Name string
|
Name string
|
||||||
Host string
|
Host string
|
||||||
AddrV4 net.IP
|
AddrV4 net.IP
|
||||||
AddrV6 net.IP
|
AddrV6 net.IP
|
||||||
Port int
|
Port int
|
||||||
Info string
|
Info string
|
||||||
|
InfoFields []string
|
||||||
|
|
||||||
Addr net.IP // @Deprecated
|
Addr net.IP // @Deprecated
|
||||||
|
|
||||||
@ -258,6 +259,7 @@ func (c *client) query(params *QueryParam) error {
|
|||||||
// Pull out the txt
|
// Pull out the txt
|
||||||
inp = ensureName(inprogress, rr.Hdr.Name)
|
inp = ensureName(inprogress, rr.Hdr.Name)
|
||||||
inp.Info = strings.Join(rr.Txt, "|")
|
inp.Info = strings.Join(rr.Txt, "|")
|
||||||
|
inp.InfoFields = rr.Txt
|
||||||
inp.hasTXT = true
|
inp.hasTXT = true
|
||||||
|
|
||||||
case *dns.A:
|
case *dns.A:
|
||||||
|
Loading…
Reference in New Issue
Block a user