Explorar el Código

fixing route issue

afeiszli hace 3 años
padre
commit
bda337d6b5
Se han modificado 1 ficheros con 1 adiciones y 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)
 }