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