Add dummy ipv6 to macos interface (#2025)

This commit is contained in:
Viktor Liu
2024-05-22 12:32:01 +02:00
committed by GitHub
parent 91fa2e20a0
commit e71059d245
3 changed files with 21 additions and 9 deletions

View File

@@ -43,11 +43,6 @@ func routeCmd(action string, prefix netip.Prefix, nexthop netip.Addr, intf *net.
}
if prefix.Addr().Is6() {
inet = "-inet6"
// Special case for IPv6 split default route, pointing to the wg interface fails
// TODO: Remove once we have IPv6 support on the interface
if prefix.Bits() == 1 {
intf = &net.Interface{Name: "lo0"}
}
}
args := []string{"-n", action, inet, network}