diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-06 19:49:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-14 06:00:50 +0300 |
commit | 25abd43600a693a47acd755b5713b342de86a7ca (patch) | |
tree | 543ab08adc6c25287de398df13c484b32e9cae19 /src/login | |
parent | 172f8c8ac189e1f6590324eb0aca14cffdba3083 (diff) | |
download | hercules-25abd43600a693a47acd755b5713b342de86a7ca.tar.gz hercules-25abd43600a693a47acd755b5713b342de86a7ca.tar.bz2 hercules-25abd43600a693a47acd755b5713b342de86a7ca.tar.xz hercules-25abd43600a693a47acd755b5713b342de86a7ca.zip |
Add send packet validation for connections between server and clients.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c index d54348834..c1844cb25 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1457,6 +1457,7 @@ static void login_parse_request_connection(int fd, struct login_session_data* sd sockt->session[fd]->func_parse = login->parse_fromchar; sockt->session[fd]->flag.server = 1; + sockt->session[fd]->flag.validate = 0; sockt->realloc_fifo(fd, FIFOSIZE_SERVERLINK, FIFOSIZE_SERVERLINK); // send connection success @@ -2175,6 +2176,7 @@ int do_init(int argc, char **argv) // set default parser as lclif->parse function sockt->set_defaultparse(lclif->parse); + sockt->validate = true; // every 10 minutes cleanup online account db. timer->add_func_list(login->online_data_cleanup, "login->online_data_cleanup"); |