mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 09:36:54 +01:00
Connect to correct ident port (forgot an htons).
This commit is contained in:
parent
c5eebb3efb
commit
e33c4818c3
1 changed files with 2 additions and 2 deletions
|
@ -316,10 +316,10 @@ start_auth_query(struct AuthRequest *auth)
|
||||||
#ifdef IPV6
|
#ifdef IPV6
|
||||||
if(localaddr.ss_family == AF_INET6)
|
if(localaddr.ss_family == AF_INET6)
|
||||||
{
|
{
|
||||||
((struct sockaddr_in6 *)&destaddr)->sin6_port = 113;
|
((struct sockaddr_in6 *)&destaddr)->sin6_port = htons(113);
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
((struct sockaddr_in *)&destaddr)->sin_port = 113;
|
((struct sockaddr_in *)&destaddr)->sin_port = htons(113);
|
||||||
|
|
||||||
auth->F = F;
|
auth->F = F;
|
||||||
SetAuthConnect(auth);
|
SetAuthConnect(auth);
|
||||||
|
|
Loading…
Reference in a new issue