@@ -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() //本轮检测重启,不可用
@@ -174,7 +174,6 @@ func checkIpAndPort() (sPorts, fPorts []string) {
- time.Sleep(1 * time.Second)
return