[client] Fix DNS Interceptor Build Error (#3993)

[client] Fix DNS Interceptor Build Error
This commit is contained in:
hakansa 2025-06-17 16:07:14 +03:00 committed by GitHub
parent de7384e8ea
commit f61ebdb3bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,7 +176,7 @@ func (d *DnsInterceptor) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
client, err := nbdns.GetClientPrivate(d.wgInterface.Address().IP, d.wgInterface.Name(), nbdns.UpstreamTimeout)
if err != nil {
d.writeDNSError(w, r, fmt.Sprintf("create DNS client: %v", err))
d.writeDNSError(w, r, logger, fmt.Sprintf("create DNS client: %v", err))
return
}