MCPcopy Create free account
hub / github.com/encodeous/nylon / RemoveRoute

Function RemoveRoute

core/sys_linux.go:43–45  ·  view source on GitHub ↗
(logger *slog.Logger, dev tun.Device, itfName string, route netip.Prefix)

Source from the content-addressed store, hash-verified

41}
42
43func RemoveRoute(logger *slog.Logger, dev tun.Device, itfName string, route netip.Prefix) error {
44 return Exec(logger, "ip", "route", "del", route.String(), "dev", itfName)
45}

Callers 2

cleanupWireGuardMethod · 0.70
syncSystemRoutesMethod · 0.70

Calls 2

ExecFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected