feat: introduce a new robust approach to handle tproxy udp. (#389)
This commit is contained in:
@@ -337,9 +337,12 @@ func handleUDPConn(packet C.PacketAdapter) {
|
||||
}
|
||||
|
||||
oAddr := metadata.DstIP
|
||||
natTable.Set(key, pc)
|
||||
packet.SetNatTable(natTable)
|
||||
packet.SetUdpInChan(udpQueue)
|
||||
|
||||
go handleUDPToLocal(packet, pc, key, oAddr, fAddr)
|
||||
|
||||
natTable.Set(key, pc)
|
||||
handle()
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user