mirror of
https://github.com/jwhited/wgsd.git
synced 2025-01-18 13:59: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{}
|
||||
question := fmt.Sprintf("%s._wireguard._udp.%s",
|
||||
pubKeyBase32, dns.Fqdn(*dnsZoneFlag))
|
||||
m.SetQuestion(question, dns.TypeSRV).RecursionDesired = false
|
||||
m.SetQuestion(question, dns.TypeSRV)
|
||||
r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag)
|
||||
srvCancel()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user