1
0
Fork 0
forked from fte/fteqw
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@909 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-03-20 03:23:46 +00:00
parent 0a819ecd64
commit bf6b09ebfd

View file

@ -969,7 +969,7 @@ int Plug_Net_TCPConnect(void *offset, unsigned int mask, const long *arg)
if (((struct sockaddr_in*)&to)->sin_family == AF_INET && !((struct sockaddr_in*)&to)->sin_port) if (((struct sockaddr_in*)&to)->sin_family == AF_INET && !((struct sockaddr_in*)&to)->sin_port)
((struct sockaddr_in*)&to)->sin_port = htons(localport); ((struct sockaddr_in*)&to)->sin_port = htons(localport);
#ifdef IPPROTO_IPV6 #ifdef IPPROTO_IPV6
else if (((struct sockaddr_in*)&to)->sin6_family == AF_INET6 && !((struct sockaddr_in6*)&to)->sin6_port) else if (((struct sockaddr_in6*)&to)->sin6_family == AF_INET6 && !((struct sockaddr_in6*)&to)->sin6_port)
((struct sockaddr_in6*)&to)->sin6_port = htons(localport); ((struct sockaddr_in6*)&to)->sin6_port = htons(localport);
#endif #endif