Hack for linux, open the IPv4 TCP & UDP ports before the IPv6 ports. Whatever is loaded 2nd will still result in a socket bind error (Address already in use), at least this way the IPv4 ports will be open.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3876 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1a5cb4add5
commit
a7b0200cd6
|
@ -526,22 +526,22 @@ int main(int argc, char **argv)
|
|||
if (cluster->qwdsocket[0] == INVALID_SOCKET && cluster->qwdsocket[1] == INVALID_SOCKET && !cluster->qwlistenportnum)
|
||||
{
|
||||
cluster->qwlistenportnum = 27599;
|
||||
cluster->qwdsocket[1] = QW_InitUDPSocket(cluster->qwlistenportnum, true);
|
||||
if (cluster->qwdsocket[1] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened udp6 port %i\n", cluster->qwlistenportnum);
|
||||
cluster->qwdsocket[0] = QW_InitUDPSocket(cluster->qwlistenportnum, false);
|
||||
if (cluster->qwdsocket[0] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened udp4 port %i\n", cluster->qwlistenportnum);
|
||||
cluster->qwdsocket[1] = QW_InitUDPSocket(cluster->qwlistenportnum, true);
|
||||
if (cluster->qwdsocket[1] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened udp6 port %i\n", cluster->qwlistenportnum);
|
||||
}
|
||||
if (cluster->tcpsocket[0] == INVALID_SOCKET && cluster->tcpsocket[1] == INVALID_SOCKET && !cluster->tcplistenportnum)
|
||||
{
|
||||
cluster->tcplistenportnum = 27599;
|
||||
cluster->tcpsocket[1] = Net_TCPListen(cluster->tcplistenportnum, true);
|
||||
if (cluster->tcpsocket[1] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened tcp6 port %i\n", cluster->tcplistenportnum);
|
||||
cluster->tcpsocket[0] = Net_TCPListen(cluster->tcplistenportnum, false);
|
||||
if (cluster->tcpsocket[0] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened tcp4 port %i\n", cluster->tcplistenportnum);
|
||||
cluster->tcpsocket[1] = Net_TCPListen(cluster->tcplistenportnum, true);
|
||||
if (cluster->tcpsocket[1] != INVALID_SOCKET)
|
||||
Sys_Printf(cluster, "opened tcp6 port %i\n", cluster->tcplistenportnum);
|
||||
}
|
||||
|
||||
Sys_Printf(cluster, "\n"
|
||||
|
|
Loading…
Reference in New Issue