I'm running dual stack in my networks. So IPv4 private addresses and IPv6 public addresses. I'm an IPv6 fanboy and normally IPv6 is preferred by every application. Except WireGuard. I'm using WireGuard on Mac using the app from the appstore and on Android. Both show the same, well not really an error, but an imperfection: When using a hostname in "Endpoint" it defaults to IPv4. For example:
[Peer]
PublicKey = mypublickey1337=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = vpn.example.com:51820
Despite vpn.example.com resolves to an IPv4 and an IPv6 address WireGuard(?) chooses to use the IPv4 one. Always! The only thing that helps is to hardcode the IPv6 address of the enpoint in the conf