Explorar o código

fixing route issue

afeiszli %!s(int64=3) %!d(string=hai) anos
pai
achega
bda337d6b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netclient/local/routes_windows.go

+ 1 - 1
netclient/local/routes_windows.go

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