mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-05 08:54:11 -04:00
20 lines
354 B
Go
20 lines
354 B
Go
//go:build !ios
|
|
|
|
package dns
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/miekg/dns"
|
|
)
|
|
|
|
// getClientPrivate returns a new DNS client bound to the local IP address of the Netbird interface
|
|
// This method is needed for iOS
|
|
func (u *upstreamResolver) getClientPrivate() *dns.Client {
|
|
dialer := &net.Dialer{}
|
|
client := &dns.Client{
|
|
Dialer: dialer,
|
|
}
|
|
return client
|
|
}
|