fix: 细节修复

This commit is contained in:
ZacharyZcR
2025-04-26 04:16:31 +08:00
parent 424c654c43
commit 247459a7f7
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ func CheckErrs(err error) error {
errLower := strings.ToLower(err.Error())
for _, key := range errs {
if strings.Contains(errLower, strings.ToLower(key)) {
time.Sleep(3 * time.Second)
time.Sleep(1 * time.Second)
return err
}
}
+2 -3
View File
@@ -15,9 +15,8 @@ import (
// 全局状态
var (
LocalScan bool // 本地扫描模式标识
WebScan bool // Web扫描模式标识
Mutex = &sync.Mutex{} // 用于保护共享资源
LocalScan bool // 本地扫描模式标识
WebScan bool // Web扫描模式标识
)
// ScanTask 表示单个扫描任务
+1 -1
View File
@@ -2,7 +2,7 @@ module github.com/shadow1ng/fscan
go 1.23.0
toolchain go1.23.6
toolchain go1.23.3
require (
github.com/IBM/sarama v1.43.3