From c36f5bd47b1069b12ef2be4485b5ab24e269b8c9 Mon Sep 17 00:00:00 2001 From: uoosef Date: Fri, 2 Feb 2024 23:35:12 +0330 Subject: [PATCH] fix cool down issue --- main.go | 2 ++ wiresocks/scanner.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 528d71c61..96f53d415 100644 --- a/main.go +++ b/main.go @@ -53,6 +53,8 @@ func main() { if *scan { endpoints = wiresocks.RunScan() + log.Println("Cooling down please wait 5 seconds...") + time.Sleep(5 * time.Second) } if !*psiphonEnabled && !*gool { diff --git a/wiresocks/scanner.go b/wiresocks/scanner.go index bbe053d6e..3217ed662 100644 --- a/wiresocks/scanner.go +++ b/wiresocks/scanner.go @@ -59,7 +59,7 @@ func RunScan() (result []string) { var ipList []net.IP for { ipList = scanner.GetAvailableIPS() - if len(ipList) > 2 { + if len(ipList) > 1 { scanner.Stop() break }