<div><div dir="auto">Hi Nico,</div></div><div dir="auto"><br></div><div dir="auto">Not sure how that would work with WireGuard being a stateless protocol.</div><div dir="auto">It also sounds a bit racey given that both v4 and v6 addresses would be </div><div dir="auto">flinging packets at essentially the same endpoint. </div><div dir="auto"><br></div><div dir="auto">I think the ‘proper’ way is to use the address returned in the AAAA record</div><div dir="auto">if one exists. If people’s setup is so broken that it becomes an issue, they </div><div dir="auto">will likely have worse issues than WG not working. :)</div><div dir="auto"><br></div><div dir="auto">Preferring v4 does weird things like WG using DNS64 addresses over real </div><div dir="auto">v6 addresses too - and using NAT64 instead of native v6 is really broken </div><div dir="auto">behaviour. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">-Will</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 6 May 2019 at 21:57, Nico Schottelius <<a href="mailto:nico.schottelius@ungleich.ch">nico.schottelius@ungleich.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hey Will,<br>
<br>
I think the "proper" way to handle this is by using the happy eyeballs<br>
algorithm: resolve AAAA and A, connect to both, use whatever answers<br>
first.<br>
<br>
Best,<br>
<br>
Nico<br>
<br>
Will Tisdale <<a href="mailto:will@z3n.uk" target="_blank">will@z3n.uk</a>> writes:<br>
<br>
> Hello,<br>
><br>
> I sent a message to the list about weirdness with IPv4 being preferred<br>
> over IPv6 in the iOS app a few days ago, but it didn't get there for<br>
> whatever reason.<br>
><br>
> I've since done a bit of digging through the code and found that<br>
> preferring IPv4 is intentional, and it's also implemented that way on<br>
> the Android app too.<br>
><br>
> It seems a shame to hobble native IPv6 support for everyone just to<br>
> work around some peoples misconfigured setups.<br>
><br>
> My suggestion/request would be to change the apps to prefer IPv6 as<br>
> default, but add a switch to the apps to disable IPv6 or prefer IPv4<br>
> for those with broken setups.<br>
><br>
> Does that seem reasonable?<br>
><br>
><br>
> Cheers,<br>
><br>
><br>
> -Will<br>
> _______________________________________________<br>
> WireGuard mailing list<br>
> <a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
> <a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
<br>
<br>
--<br>
Your Swiss, Open Source and IPv6 Virtual Machine. Now on <a href="http://www.datacenterlight.ch" rel="noreferrer" target="_blank">www.datacenterlight.ch</a>.<br>
</blockquote></div></div>