Skip to content
Snippets Groups Projects
Commit 9936a946 authored by kr328's avatar kr328
Browse files

Fix: fix tun local addr

parent 0e245b89
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ func Start(fd int, gateway, portal, dns string) (io.Closer, error) { ...@@ -46,7 +46,7 @@ func Start(fd int, gateway, portal, dns string) (io.Closer, error) {
continue continue
} }
lAddr := conn.RemoteAddr().(*net.TCPAddr) lAddr := conn.LocalAddr().(*net.TCPAddr)
rAddr := conn.RemoteAddr().(*net.TCPAddr) rAddr := conn.RemoteAddr().(*net.TCPAddr)
if ipv4LoopBack.Contains(rAddr.IP) { if ipv4LoopBack.Contains(rAddr.IP) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment