From 71f8f0667fb40f39cb81eb381f267999f278bd3f Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Sat, 4 Mar 2023 16:27:36 +0800 Subject: [PATCH] Fix: fakeip 4in 6 unmap --- tunnel/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel/connection.go b/tunnel/connection.go index cf024c7..cf37114 100644 --- a/tunnel/connection.go +++ b/tunnel/connection.go @@ -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() }