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

View File

@ -231,7 +231,7 @@ func CheckErrs(err error) error {
errLower := strings.ToLower(err.Error()) errLower := strings.ToLower(err.Error())
for _, key := range errs { for _, key := range errs {
if strings.Contains(errLower, strings.ToLower(key)) { if strings.Contains(errLower, strings.ToLower(key)) {
time.Sleep(3 * time.Second) time.Sleep(1 * time.Second)
return err return err
} }
} }

View File

@ -15,9 +15,8 @@ import (
// 全局状态 // 全局状态
var ( var (
LocalScan bool // 本地扫描模式标识 LocalScan bool // 本地扫描模式标识
WebScan bool // Web扫描模式标识 WebScan bool // Web扫描模式标识
Mutex = &sync.Mutex{} // 用于保护共享资源
) )
// ScanTask 表示单个扫描任务 // ScanTask 表示单个扫描任务

2
go.mod
View File

@ -2,7 +2,7 @@ module github.com/shadow1ng/fscan
go 1.23.0 go 1.23.0
toolchain go1.23.6 toolchain go1.23.3
require ( require (
github.com/IBM/sarama v1.43.3 github.com/IBM/sarama v1.43.3