Skip to content

Commit

Permalink
hotfix: disable net.DefaultResolver.PreferGo (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue authored Dec 21, 2024
1 parent d3c2dde commit fd786ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func (o *SvrOption) Start(ctx context.Context) error {
// for gssapi to lookup KDCs in DNS
// c.LibDefaults.DNSLookupKDC = true
// c.LibDefaults.DNSLookupRealm = true
net.DefaultResolver.PreferGo = true

util.InitLoggerForServer(true)
log.SetOutput(l)
Expand Down
2 changes: 0 additions & 2 deletions pkg/dhcp/dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ func NewDHCPManager(client corev1.ConfigMapInterface, namespace string) *Manager
// InitDHCP
// TODO optimize dhcp, using mac address, ip and deadline as unit
func (m *Manager) InitDHCP(ctx context.Context) error {
net.DefaultResolver.PreferGo = false

cm, err := m.client.Get(ctx, config.ConfigMapPodTrafficManager, metav1.GetOptions{})
if err != nil && !apierrors.IsNotFound(err) {
return fmt.Errorf("failed to get configmap %s, err: %v", config.ConfigMapPodTrafficManager, err)
Expand Down

0 comments on commit fd786ca

Please sign in to comment.