(b []byte)
| 108 | } |
| 109 | |
| 110 | func (c *PostHandshakeRecordDetectConn) Write(b []byte) (n int, err error) { |
| 111 | if len(b) >= 3 && bytes.Equal(b[:3], []byte{20, 3, 3}) { |
| 112 | c.CcsSent = true |
| 113 | } |
| 114 | return c.Conn.Write(b) |
| 115 | } |
| 116 | |
| 117 | func (c *PostHandshakeRecordDetectConn) Read(b []byte) (n int, err error) { |
| 118 | if !c.CcsSent { |