1
0
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:
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

@@ -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