mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-04 08:15:21 -05:00
style: refine code style
This commit is contained in:
@@ -46,12 +46,12 @@ func HandleUDP(handle func(tun_net.UDPConn)) StackOption {
|
||||
return
|
||||
}
|
||||
|
||||
udpConn := &udpConn{
|
||||
conn := &udpConn{
|
||||
UDPConn: gonet.NewUDPConn(s, wg, linkedEndpoint),
|
||||
id: r.ID(),
|
||||
}
|
||||
|
||||
handle(udpConn)
|
||||
handle(conn)
|
||||
})
|
||||
s.SetTransportProtocolHandler(gvisor_udp.ProtocolNumber, udpForwarder.HandlePacket)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user