diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-04 21:13:28 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-04 21:13:28 +0200 |
commit | 3815795d59d22cde5f0c81c1926a21bb15b82a58 (patch) | |
tree | fae75f64701f87d75053f8047be7bcbbd9cc8b6f /xS/main.go | |
parent | fd1538251a7d3637a4613077c05991330a85b598 (diff) | |
download | xK-3815795d59d22cde5f0c81c1926a21bb15b82a58.tar.gz xK-3815795d59d22cde5f0c81c1926a21bb15b82a58.tar.xz xK-3815795d59d22cde5f0c81c1926a21bb15b82a58.zip |
hid: fix SSL 2.0 autodetection
Diffstat (limited to 'xS/main.go')
-rw-r--r-- | xS/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |