Skip to content

Commit

Permalink
fix cool down issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Feb 2, 2024
1 parent bec011c commit c36f5bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion wiresocks/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c36f5bd

Please sign in to comment.