aboutsummaryrefslogtreecommitdiff
path: root/xS/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'xS/main.go')
-rw-r--r--xS/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xS/main.go b/xS/main.go
index 0026d55..69978b6 100644
--- a/xS/main.go
+++ b/xS/main.go
@@ -87,7 +87,7 @@ func detectTLS(sysconn syscall.RawConn) (isTLS bool) {
isTLS = buf[0]&0x80 != 0 && buf[2] == 1
fallthrough
case n == 2:
- isTLS = buf[0] == 22 && buf[1] == 3
+ isTLS = isTLS || buf[0] == 22 && buf[1] == 3
case n == 1:
isTLS = buf[0] == 22
case err == syscall.EAGAIN: