Fix: fakeip 4in 6 unmap
This commit is contained in:
parent
f78a7cb2cb
commit
71f8f0667f
@ -44,7 +44,7 @@ func handleUDPToLocal(packet C.UDPPacket, pc net.PacketConn, key string, oAddr,
|
|||||||
fromUDPAddr := from.(*net.UDPAddr)
|
fromUDPAddr := from.(*net.UDPAddr)
|
||||||
if fAddr.IsValid() {
|
if fAddr.IsValid() {
|
||||||
fromAddr, _ := netip.AddrFromSlice(fromUDPAddr.IP)
|
fromAddr, _ := netip.AddrFromSlice(fromUDPAddr.IP)
|
||||||
fromAddr.Unmap()
|
fromAddr = fromAddr.Unmap()
|
||||||
if oAddr == fromAddr {
|
if oAddr == fromAddr {
|
||||||
fromUDPAddr.IP = fAddr.AsSlice()
|
fromUDPAddr.IP = fAddr.AsSlice()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user