mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-30 03:41:51 +08:00
fixing route issue
This commit is contained in:
@@ -27,6 +27,6 @@ func setCidr(iface, address string, addr *net.IPNet) {
|
||||
ncutils.RunCmd("route change "+addr.IP.String()+" mask "+addr.Mask.String()+" "+address, false)
|
||||
}
|
||||
|
||||
func removeCidr(iface, addr *net.IPNet, address string) {
|
||||
func removeCidr(iface string, addr *net.IPNet, address string) {
|
||||
ncutils.RunCmd("route delete "+addr.IP.String()+" mask "+addr.Mask.String()+" "+address, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user