From ddd79e3c04cd7265e3669b7346c65e47c49ff26a Mon Sep 17 00:00:00 2001 From: Wagum Date: Thu, 19 Sep 2019 10:03:22 +0200 Subject: [PATCH] Update main.go fixed tls handshake check. checking if size of tls msg buffer is eq to 5. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3f6e23e..3a4b502 100644 --- a/main.go +++ b/main.go @@ -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 "" }