mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-11-05 10:45:27 +00:00
Update webtitle.go
This commit is contained in:
parent
5bb7502ba3
commit
0b8c0ccc96
@ -232,6 +232,8 @@ func GetProtocol(host string, Timeout int64) (protocol string) {
|
|||||||
conn.Close()
|
conn.Close()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
conn.SetDeadline(time.Now().Add(time.Duration(Timeout) * time.Second))
|
||||||
|
err = conn.Handshake()
|
||||||
if err == nil || strings.Contains(err.Error(), "handshake failure") {
|
if err == nil || strings.Contains(err.Error(), "handshake failure") {
|
||||||
protocol = "https"
|
protocol = "https"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user