Merge remote-tracking branch 'Meta/Alpha' into Alpha

# Conflicts:
#	listener/tun/ipstack/commons/router_linux.go
This commit is contained in:
MetaCubeX 2022-05-04 01:02:17 +08:00
commit b307bcb4a9

View File

@ -28,7 +28,7 @@ func ConfigInterfaceAddress(dev device.Device, addr netip.Prefix, forceMTU int,
return err
}
execRouterCmd("add", addr.String(), interfaceName, ip.String(), "main")
execRouterCmd("add", addr.Masked().String(), interfaceName, ip.String(), "main")
if autoRoute {
err = configInterfaceRouting(interfaceName, addr, autoDetectInterface)