Update main.go

fixed tls handshake check. checking if size of tls msg buffer is eq to 5.
master
Wagum 5 years ago committed by GitHub
parent c926c32989
commit ddd79e3c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ import (
func getSNIServerName(buf []byte) string {
n := len(buf)
if n < 5 {
if n <= 5 {
glog.Error("not tls handshake")
return ""
}

Loading…
Cancel
Save