fix PTR answer target

This commit is contained in:
Jordan Whited 2020-05-13 14:06:49 -07:00
parent 9963322fb6
commit 385d7b0582

View File

@ -76,9 +76,9 @@ func (p *WGSD) ServeDNS(ctx context.Context, w dns.ResponseWriter,
Class: dns.ClassINET, Class: dns.ClassINET,
Ttl: 0, Ttl: 0,
}, },
Ptr: fmt.Sprintf("%s.%s", Ptr: fmt.Sprintf("%s.%s%s",
base64.StdEncoding.EncodeToString(peer.PublicKey[:]), base64.StdEncoding.EncodeToString(peer.PublicKey[:]),
p.zone), spPrefix, p.zone),
}) })
} }
w.WriteMsg(m) // nolint: errcheck w.WriteMsg(m) // nolint: errcheck