1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 21:15:46 -05:00

style: refine code style

This commit is contained in:
AkinoKaede
2023-05-28 22:43:08 +08:00
committed by Shelikhoo
parent d1c3007d30
commit c324d3af70
3 changed files with 8 additions and 8 deletions

View File

@@ -55,12 +55,12 @@ func HandleTCP(handle func(tun_net.TCPConn)) StackOption {
// TODO: set sockopt
tcpConn := &tcpConn{
conn := &tcpConn{
TCPConn: gonet.NewTCPConn(wg, linkedEndpoint),
id: r.ID(),
}
tcpQueue <- tcpConn
handle(conn)
})
s.SetTransportProtocolHandler(tcp.ProtocolNumber, tcpForwarder.HandlePacket)