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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user