aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-04 21:13:28 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-04 21:13:28 +0200
commit3815795d59d22cde5f0c81c1926a21bb15b82a58 (patch)
treefae75f64701f87d75053f8047be7bcbbd9cc8b6f
parentfd1538251a7d3637a4613077c05991330a85b598 (diff)
downloadxK-3815795d59d22cde5f0c81c1926a21bb15b82a58.tar.gz
xK-3815795d59d22cde5f0c81c1926a21bb15b82a58.tar.xz
xK-3815795d59d22cde5f0c81c1926a21bb15b82a58.zip
hid: fix SSL 2.0 autodetection
-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: