MCPcopy
hub / github.com/MetaCubeX/mihomo / ObfsWeChatUDPConn

Struct ObfsWeChatUDPConn

transport/hysteria/conns/wechat/obfs.go:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15const udpBufferSize = 65535
16
17type 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
27func NewObfsWeChatUDPConn(orig net.PacketConn, obfs obfs.Obfuscator) *ObfsWeChatUDPConn {
28 log.Infoln("new wechat")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected