mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-10 03:00:15 +08:00
Refactor(core): replace net.IP with netip.Addr (#395)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user