Use Go's resolver for darwin for control plane and ICE traffic

This commit is contained in:
Viktor Liu
2025-11-21 13:53:50 +01:00
parent 1311364397
commit 1dcd92c5d1
4 changed files with 55 additions and 3 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ func WithCustomDialer(_ bool, _ string) grpc.DialOption {
// the custom dialer requires root permissions which are not required for use cases run as non-root
if currentUser.Uid != "0" {
log.Debug("Not running as root, using standard dialer")
dialer := &net.Dialer{}
dialer := &net.Dialer{
Resolver: nbnet.NewResolver(),
}
return dialer.DialContext(ctx, "tcp", addr)
}
}