mirror of
https://github.com/jwhited/wgsd.git
synced 2025-01-18 22:09:34 +08:00
someone might use recursion
This commit is contained in:
parent
27efcca09f
commit
a3627a0f27
@ -73,7 +73,7 @@ func main() {
|
|||||||
m := &dns.Msg{}
|
m := &dns.Msg{}
|
||||||
question := fmt.Sprintf("%s._wireguard._udp.%s",
|
question := fmt.Sprintf("%s._wireguard._udp.%s",
|
||||||
pubKeyBase32, dns.Fqdn(*dnsZoneFlag))
|
pubKeyBase32, dns.Fqdn(*dnsZoneFlag))
|
||||||
m.SetQuestion(question, dns.TypeSRV).RecursionDesired = false
|
m.SetQuestion(question, dns.TypeSRV)
|
||||||
r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag)
|
r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag)
|
||||||
srvCancel()
|
srvCancel()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user