fix: dhcp ifacename type

This commit is contained in:
gVisor bot 2022-04-28 23:44:37 +08:00
parent 336d3482d6
commit 8fa6b3024f

View file

@ -2,6 +2,7 @@ package dns
import ( import (
"context" "context"
"go.uber.org/atomic"
"net" "net"
"net/netip" "net/netip"
"sync" "sync"
@ -71,7 +72,7 @@ func (d *dhcpClient) resolve(ctx context.Context) (*Resolver, error) {
for _, item := range dns { for _, item := range dns {
nameserver = append(nameserver, NameServer{ nameserver = append(nameserver, NameServer{
Addr: net.JoinHostPort(item.String(), "53"), Addr: net.JoinHostPort(item.String(), "53"),
Interface: d.ifaceName, Interface: atomic.NewString(d.ifaceName),
}) })
} }