Skip to content

Commit

Permalink
Fix: No route when bind_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
chise0713 committed Aug 19, 2024
1 parent 160316d commit 1dd27d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy/wireguard/tun_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ func createKernelTun(localAddresses []netip.Addr, mtu int, handler promiscuousMo

r := netlink.NewRule()
r.Table, r.Family, r.Src = ipv6TableIndex, unix.AF_INET6, addr.IPNet
r = netlink.NewRule()
r.Table, r.Family, r.OifName = ipv6TableIndex, unix.AF_INET6, n
out.rules = append(out.rules, r)
}

Expand Down

0 comments on commit 1dd27d0

Please sign in to comment.