1
0

Fix: fakeip 4in 6 unmap

This commit is contained in:
Dreamacro 2023-03-04 16:27:36 +08:00
parent f78a7cb2cb
commit 71f8f0667f

View File

@ -44,7 +44,7 @@ func handleUDPToLocal(packet C.UDPPacket, pc net.PacketConn, key string, oAddr,
fromUDPAddr := from.(*net.UDPAddr)
if fAddr.IsValid() {
fromAddr, _ := netip.AddrFromSlice(fromUDPAddr.IP)
fromAddr.Unmap()
fromAddr = fromAddr.Unmap()
if oAddr == fromAddr {
fromUDPAddr.IP = fAddr.AsSlice()
}