mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-21 20:56:06 +03:00
Wireguard inbound: Fix no route when bind to interface (#3698)
This commit is contained in:
parent
160316d53c
commit
41d03d1856
@ -200,6 +200,9 @@ func createKernelTun(localAddresses []netip.Addr, mtu int, handler promiscuousMo
|
|||||||
r := netlink.NewRule()
|
r := netlink.NewRule()
|
||||||
r.Table, r.Family, r.Src = ipv6TableIndex, unix.AF_INET6, addr.IPNet
|
r.Table, r.Family, r.Src = ipv6TableIndex, unix.AF_INET6, addr.IPNet
|
||||||
out.rules = append(out.rules, r)
|
out.rules = append(out.rules, r)
|
||||||
|
r = netlink.NewRule()
|
||||||
|
r.Table, r.Family, r.OifName = ipv6TableIndex, unix.AF_INET6, n
|
||||||
|
out.rules = append(out.rules, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, addr := range out.linkAddrs {
|
for _, addr := range out.linkAddrs {
|
||||||
|
Loading…
Reference in New Issue
Block a user