ソースを参照

新增只支持IP切换,推送proxy信息功能

mxs 1 年間 前
コミット
53f86770b9
2 ファイル変更1 行追加2 行削除
  1. 1 1
      src/sendip.go
  2. 0 1
      src/util.go

+ 1 - 1
src/sendip.go

@@ -144,7 +144,7 @@ func checkIpAndPort_SendIp() (sPorts, fPorts []string) {
 	}
 	fmt.Println("检测端口...")
 	//检测端口
-	sPorts, fPorts = checkIpAndPort_SendIp()
+	sPorts, fPorts = checkPort()
 	if len(fPorts) == len(config.Ports) { //端口都不可用,重启端口
 		go reStartPorts() //本轮检测重启,不可用
 	}

+ 0 - 1
src/util.go

@@ -174,7 +174,6 @@ func checkIpAndPort() (sPorts, fPorts []string) {
 	if len(fPorts) == len(config.Ports) { //端口都不可用,重启端口
 		go reStartPorts() //本轮检测重启,不可用
 	}
-	time.Sleep(1 * time.Second)
 	return
 }