| 15 | const udpBufferSize = 65535 |
| 16 | |
| 17 | type ObfsWeChatUDPConn struct { |
| 18 | orig net.PacketConn |
| 19 | obfs obfs.Obfuscator |
| 20 | readBuf []byte |
| 21 | readMutex sync.Mutex |
| 22 | writeBuf []byte |
| 23 | writeMutex sync.Mutex |
| 24 | sn uint32 |
| 25 | } |
| 26 | |
| 27 | func NewObfsWeChatUDPConn(orig net.PacketConn, obfs obfs.Obfuscator) *ObfsWeChatUDPConn { |
| 28 | log.Infoln("new wechat") |
nothing calls this directly
no outgoing calls
no test coverage detected