mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-21 07:46:04 +08:00
fixing route issue
This commit is contained in:
parent
df895dc6b0
commit
bda337d6b5
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue