mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
handle error
This commit is contained in:
parent
d774023da7
commit
6f15f835f0
@ -221,6 +221,11 @@ func GetProtocol(host string, Timeout int64) (protocol string) {
|
||||
conn := tls.Client(socksconn, &tls.Config{InsecureSkipVerify: true})
|
||||
defer func() {
|
||||
if conn != nil {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
common.LogError(err)
|
||||
}
|
||||
}()
|
||||
conn.Close()
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user