Refactor(core): replace net.IP with netip.Addr (#395)

This commit is contained in:
Jason Lyu
2024-08-31 12:00:38 +08:00
committed by GitHub
parent fd98f65994
commit 1f09b4d42d
4 changed files with 25 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
package core
import (
"net"
"net/netip"
"gvisor.dev/gvisor/pkg/tcpip/network/ipv4"
"gvisor.dev/gvisor/pkg/tcpip/network/ipv6"
@@ -26,7 +26,7 @@ type Config struct {
// MulticastGroups is used by internal stack to add
// nic to given groups.
MulticastGroups []net.IP
MulticastGroups []netip.Addr
// Options are supplement options to apply settings
// for the internal stack.