[Bug 279850] wireguard: wg(8) fails on INET6-only kernel

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279850

Kyle Evans <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Kyle Evans <[email protected]> ---
How does this feel?

diff --git a/contrib/wireguard-tools/ipc-freebsd.h
b/contrib/wireguard-tools/ipc-freebsd.h
index fa74edda5a3d..446f13cacac2 100644
--- a/contrib/wireguard-tools/ipc-freebsd.h
+++ b/contrib/wireguard-tools/ipc-freebsd.h
@@ -15,7 +15,7 @@ static int get_dgram_socket(void)
 {
        static int sock = -1;
        if (sock < 0)
-               sock = socket(AF_INET, SOCK_DGRAM, 0);
+               sock = socket(AF_LOCAL, SOCK_DGRAM, 0);
        return sock;
 }

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.