kcp: add some default settings to kcp conn (to improve the speed)

This commit is contained in:
nadoo committed 2018-12-13 00:22:34 +08:00
1 parent 750862abdb
commit c6a879dded
2 files changed
+20 -2

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ func clientHello() *bytes.Buffer {
// https://github.com/shadowsocks/simple-obfs/blob/7659eeccf473aa41eb294e92c32f8f60a8747325/src/obfs_tls.c#L57
// Cipher Suites Length: 56
buf.Write([]byte{0x00, 0x38})
binary.Write(buf, binary.BigEndian, uint16(56))
// Cipher Suites (28 suites)
buf.Write([]byte{
0xc0, 0x2c, 0xc0, 0x30, 0x00, 0x9f, 0xcc, 0xa9, 0xcc, 0xa8, 0xcc, 0xaa, 0xc0, 0x2b, 0xc0, 0x2f,