From 0720409d3e51b594160ab9731fe25031fad5f479 Mon Sep 17 00:00:00 2001 From: Elkan Roelen Date: Tue, 11 Sep 2018 15:06:44 +0200 Subject: [PATCH] Update network.c Fix IPV6 for MacOS - probably other OS'es too. --- src/backends/unix/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/unix/network.c b/src/backends/unix/network.c index 3cb5aa60..93b8449f 100644 --- a/src/backends/unix/network.c +++ b/src/backends/unix/network.c @@ -829,7 +829,7 @@ NET_Socket(char *net_interface, int port, netsrc_t type, int family) if (!net_interface || !net_interface[0] || !Q_stricmp(net_interface, "localhost")) { - Host = (family == AF_INET6) ? "::" : "0.0.0.0"; + Host = (family == AF_INET6) ? "::1" : "0.0.0.0"; } else {