summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-28 16:25:04 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-28 16:25:04 +0000
commita06046040d922ed9df27f3bfb164a979e449fe34 (patch)
tree57166527331aa84f9e13a36ce2e6ed914906af5f
parent3581f0868eec9bfc6728b0e32a47f8558a0a9e10 (diff)
downloadhercules-a06046040d922ed9df27f3bfb164a979e449fe34.tar.gz
hercules-a06046040d922ed9df27f3bfb164a979e449fe34.tar.bz2
hercules-a06046040d922ed9df27f3bfb164a979e449fe34.tar.xz
hercules-a06046040d922ed9df27f3bfb164a979e449fe34.zip
'minor' details
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10389 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/common/mmo.h2
-rw-r--r--src/login/login.c2
-rw-r--r--src/login_sql/login.c2
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;
}
}