Skip to content

Commit

Permalink
Fix IP scan
Browse files Browse the repository at this point in the history
  • Loading branch information
macronut committed Jan 26, 2022
1 parent 9eff2b6 commit e8cd595
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion header/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func Scan(ipRange string, speed int) {
log.Println(err)
return
}
DetectEnable = true

var winDivertAddr godivert.WinDivertAddress

Expand Down
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ func StartService() {
tcpioneer.LogLevel = 1
}

if ScanIPRange != "" {
tcpioneer.DetectEnable = true
tcpioneer.ScanURL = ScanURL
tcpioneer.ScanTimeout = ScanTimeout
}

tcpioneer.TCPDaemon(":443", false)
tcpioneer.TCPDaemon(":80", false)
tcpioneer.UDPDaemon(443, false)
Expand All @@ -74,9 +80,6 @@ func StartService() {
}

if ScanIPRange != "" {
tcpioneer.ScanURL = ScanURL
tcpioneer.ScanTimeout = ScanTimeout

go tcpioneer.Scan(ScanIPRange, ScanSpeed)
}

Expand Down

0 comments on commit e8cd595

Please sign in to comment.