mirror of
https://github.com/jwhited/wgsd.git
synced 2025-01-19 06:19:33 +08:00
fix PTR answer target
This commit is contained in:
parent
9963322fb6
commit
385d7b0582
4
wgsd.go
4
wgsd.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user