From 95acae21f2c3d1f76109f6d9c5a8121f1474a923 Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 20 Apr 2007 21:57:33 +0000 Subject: - Added ntows() to properly handle that client port number deficiency - Adjusted the packet_db array for a more consistent look - Reorganized some entries in packet_db.txt - Fixed a small scripts_custom.conf typo git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10296 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char_sql') diff --git a/src/char_sql/char.c b/src/char_sql/char.c index d9fcea839..dcec47c42 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -3349,8 +3349,8 @@ int parse_char(int fd) // Advanced subnet check [LuzZza] subnet_map_ip = lan_subnetcheck(ipl); - WFIFOL(fd,22) = (subnet_map_ip) ? htonl(subnet_map_ip) : htonl(server[i].ip); - WFIFOW(fd,26) = server[i].port; // /!\ must be sent in intel host byte order /!\ (client bug) + WFIFOL(fd,22) = htonl((subnet_map_ip) ? subnet_map_ip : server[i].ip); + WFIFOW(fd,26) = ntows(htons(server[i].port)); // [!] LE byte order here [!] WFIFOSET(fd,28); } if (auth_fifo_pos >= AUTH_FIFO_SIZE) -- cgit v1.2.3-70-g09d2