Fix mistake in tlsguard commit

master
dma 7 years ago
parent 2012b070c7
commit 178d8ea272

@ -499,15 +499,12 @@ select_loop:
if (cr.client && s == SSL3_MT_CLIENT_HELLO) || (!cr.client && s == SSL3_MT_SERVER_HELLO) {
// rewrite := false
// rewrite_buf := []byte{}
/* SRC := ""
//SRC := ""
if s == SSL3_MT_CLIENT_HELLO {
SRC = "CLIENT"
} else {
if s != SSL3_MT_CLIENT_HELLO {
server_expected = []uint{SSL3_MT_CERTIFICATE, SSL3_MT_HELLO_REQUEST}
SRC = "SERVER"
}
*/
hello_offset := 4
// 2 byte protocol version
//fmt.Println(SRC, "HELLO VERSION = ", handshakeMsg[hello_offset:hello_offset+2])
@ -731,4 +728,3 @@ select_loop:
return nil
}

Loading…
Cancel
Save