| 11 | const udpBufferSize = 65535 |
| 12 | |
| 13 | type ObfsFakeTCPConn struct { |
| 14 | orig *TCPConn |
| 15 | obfs obfs.Obfuscator |
| 16 | readBuf []byte |
| 17 | readMutex sync.Mutex |
| 18 | writeBuf []byte |
| 19 | writeMutex sync.Mutex |
| 20 | } |
| 21 | |
| 22 | func NewObfsFakeTCPConn(orig *TCPConn, obfs obfs.Obfuscator) *ObfsFakeTCPConn { |
| 23 | return &ObfsFakeTCPConn{ |
nothing calls this directly
no outgoing calls
no test coverage detected