diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/mmo.h | 2 | ||||
-rw-r--r-- | src/login/login.c | 2 | ||||
-rw-r--r-- | src/login_sql/login.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index 882ccac30..bd5a067d9 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -10,7 +10,7 @@ // server protocol version #ifndef PACKETVER - #define PACKETVER 7 + #define PACKETVER 8 #endif #define FIFOSIZE_SERVERLINK 256*1024 diff --git a/src/login/login.c b/src/login/login.c index cd5b99dea..cc30221e8 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1147,7 +1147,7 @@ int mmo_auth(struct mmo_account* account, int fd) { if (!matched) { sprintf(ip_dnsbl, "%s.%s", r_ip, dnsbl_serv); - if(gethostbyname(ip_dnsbl)) + if(host2ip(ip_dnsbl)) matched = true; } } diff --git a/src/login_sql/login.c b/src/login_sql/login.c index e56d67056..d2cbb60ee 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -534,7 +534,7 @@ int mmo_auth(struct mmo_account* account, int fd) { if (!matched) { sprintf(ip_dnsbl, "%s.%s", r_ip, dnsbl_serv); - if(gethostbyname(ip_dnsbl)) + if(host2ip(ip_dnsbl)) matched = true; } } |