Merge pull request #322 from Smilo-platform/master

Fix IPV6 networking
This commit is contained in:
Yamagi 2018-10-01 17:33:04 +02:00 committed by GitHub
commit 881d9afda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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 $<"

View File

@ -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
{

View File

@ -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
{