소스 검색

switching route thing in windows

afeiszli 3 년 전
부모
커밋
df895dc6b0
3개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. BIN
      main
  2. 1 1
      netclient/local/routes_windows.go
  3. BIN
      netclient/main

BIN
main


+ 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, address string, addr *net.IPNet) {
+func removeCidr(iface, addr *net.IPNet, address string) {
 	ncutils.RunCmd("route delete "+addr.IP.String()+" mask "+addr.Mask.String()+" "+address, false)
 }

BIN
netclient/main