ソースを参照

fixing route issue

afeiszli 3 年 前
コミット
bda337d6b5
1 ファイル変更1 行追加1 行削除
  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)
 }