From 9936a9469d95739210246596e56e342d30ef22f1 Mon Sep 17 00:00:00 2001 From: kr328 Date: Sun, 21 Nov 2021 13:01:27 +0800 Subject: [PATCH] Fix: fix tun local addr --- core/src/main/golang/native/tun/tun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/golang/native/tun/tun.go b/core/src/main/golang/native/tun/tun.go index ea4c266f..b6b0eb1e 100644 --- a/core/src/main/golang/native/tun/tun.go +++ b/core/src/main/golang/native/tun/tun.go @@ -46,7 +46,7 @@ func Start(fd int, gateway, portal, dns string) (io.Closer, error) { continue } - lAddr := conn.RemoteAddr().(*net.TCPAddr) + lAddr := conn.LocalAddr().(*net.TCPAddr) rAddr := conn.RemoteAddr().(*net.TCPAddr) if ipv4LoopBack.Contains(rAddr.IP) {