*sigh*
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@909 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0a819ecd64
commit
bf6b09ebfd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
((struct sockaddr_in*)&to)->sin_port = htons(localport);
|
||||
#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);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue