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