mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-07-30 19:50:49 -04:00
Add IPv6 happy eyeball support for wireguard
(mostly vibe coded)
This commit is contained in:
committed by
Xiaokang Wang (Shelikhoo)
parent
4c87c9f14f
commit
f516eca541
@@ -88,7 +88,7 @@ func (w *WrappedStack) createStack(linkedEndpoint stack.LinkEndpoint) (*stack.St
|
||||
|
||||
// Add protocol addresses
|
||||
for _, ip := range w.config.Ips {
|
||||
tcpIPAddr := tcpip.AddrFrom4Slice(ip.Ip)
|
||||
tcpIPAddr := tcpip.AddrFromSlice(ip.Ip)
|
||||
protocolAddress := tcpip.ProtocolAddress{
|
||||
AddressWithPrefix: tcpip.AddressWithPrefix{
|
||||
Address: tcpIPAddr,
|
||||
@@ -114,7 +114,7 @@ func (w *WrappedStack) createStack(linkedEndpoint stack.LinkEndpoint) (*stack.St
|
||||
s.SetRouteTable(func() (table []tcpip.Route) {
|
||||
for _, cidrs := range w.config.Routes {
|
||||
subnet := tcpip.AddressWithPrefix{
|
||||
Address: tcpip.AddrFrom4Slice(cidrs.Ip),
|
||||
Address: tcpip.AddrFromSlice(cidrs.Ip),
|
||||
PrefixLen: int(cidrs.Prefix),
|
||||
}.Subnet()
|
||||
route := tcpip.Route{
|
||||
|
||||
Reference in New Issue
Block a user