fixing route issue

This commit is contained in:
afeiszli 2022-02-05 16:09:23 -05:00
parent df895dc6b0
commit bda337d6b5

View file

@ -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)
}