summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r--src/login_sql/login.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}