mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
Fix: fix tun local addr
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user