diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-29 16:16:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-29 16:16:48 +0300 |
commit | 8867d978d868f6856cf0dd9eccbe1022c2814856 (patch) | |
tree | 6c22360c73d190826c685a4c2ca5f1e28c2dbc40 /src/login | |
parent | 60833f07d7d563092570dbfdffaf1876921711d1 (diff) | |
download | evol-hercules-8867d978d868f6856cf0dd9eccbe1022c2814856.tar.gz evol-hercules-8867d978d868f6856cf0dd9eccbe1022c2814856.tar.bz2 evol-hercules-8867d978d868f6856cf0dd9eccbe1022c2814856.tar.xz evol-hercules-8867d978d868f6856cf0dd9eccbe1022c2814856.zip |
Improve inter server ip limit checks. Also move this check into common.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/parse.c b/src/login/parse.c index 9f1ffcb..7aa31e9 100644 --- a/src/login/parse.c +++ b/src/login/parse.c @@ -13,6 +13,7 @@ #include "../../../login/account.h" #include "../../../login/login.h" +#include "common/ip.h" #include "login/config.h" #include "login/parse.h" #include "login/send.h" @@ -140,7 +141,7 @@ void elogin_parse_request_connection(int *fd, struct login_session_data* sd, con { if (!inter_server_ip || !ip) return; - if (!strstr(inter_server_ip, ip)) + if (!checkAllowedIp(inter_server_ip, ip)) { hookStop(); login->char_server_connection_status(*fd, sd, 3); |