Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Houman <>
To: WireGuard mailing list <>
Subject: Wireguard iOS crashes after upgrading to XCode 14
Date: Tue, 13 Sep 2022 13:41:59 +0100	[thread overview]
Message-ID: <> (raw)

My existing Wireguard iOS implementation stopped working after
upgrading to Xcode 14 today.
When trying to connect to servers that support only IPv4, then it's
fine. But if the server supports both IPv6 and IPv4 then the tunnel

This IPv6 extension in
wireguard-apple/Sources/WireGuardKit/IPAddress+AddrInfo.swift crashes
with a Fatal Error at addrInfo.ai_addr.withMemoryRebound()

The whole extension below:

extension IPv6Address {
    init?(addrInfo: addrinfo) {
        guard addrInfo.ai_family == AF_INET6 else { return nil }

        let addressData = addrInfo.ai_addr.withMemoryRebound(to:
sockaddr_in6.self, capacity: MemoryLayout<sockaddr_in6>.size) { ptr ->
Data in
            return Data(bytes: &ptr.pointee.sin6_addr, count:

Has anyone else experienced this problem?


             reply	other threads:[~2022-09-13 12:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13 12:41 Houman [this message]
2022-09-22  8:31 ` Andrej Mihajlov
2022-09-22  8:56   ` Houman
2022-09-22  9:38     ` Jason A. Donenfeld
2022-09-22  9:39       ` Houman
2022-12-05 17:15       ` Houman
2022-12-05 17:40         ` Jason A. Donenfeld
2022-09-22  9:44     ` Andrej Mihajlov
2022-09-22  9:46       ` Houman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).