diff --git a/Makefile b/Makefile index 4654d9bf..9b31fb11 100755 --- a/Makefile +++ b/Makefile @@ -360,10 +360,10 @@ client: $(MAKE) release/quake2 ifeq ($(YQ2_OSTYPE), Darwin) -build/client/%.o : %.m +build/client/%.o : %.c @echo "===> CC $<" ${Q}mkdir -p $(@D) - ${Q}$(CC) $(OSX_ARCH) -x objective-c -c $< -o $@ + ${Q}$(CC) $(OSX_ARCH) -x objective-c -c $(CFLAGS) $(SDLCFLAGS) $(ZIPCFLAGS) $(INCLUDE) $< -o $@ else build/client/%.o: %.c @echo "===> CC $<" diff --git a/src/backends/unix/network.c b/src/backends/unix/network.c index 3cb5aa60..2c5abc56 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) ? "::/128" : "0.0.0.0"; } else { diff --git a/src/backends/windows/network.c b/src/backends/windows/network.c index 11c255d4..e3c25edc 100644 --- a/src/backends/windows/network.c +++ b/src/backends/windows/network.c @@ -821,7 +821,7 @@ NET_IPSocket(char *net_interface, int port, netsrc_t type, int family) if (!net_interface || !net_interface[0] || !stricmp(net_interface, "localhost")) { - Host = (family == AF_INET6) ? "::" : "0.0.0.0"; + Host = (family == AF_INET6) ? "::/128" : "0.0.0.0"; } else {