diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-05 01:57:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-05 01:57:52 +0300 |
commit | 7eaba97f02e18d8610ea004851ab2ec8b8edeebb (patch) | |
tree | 12bf9a8e1cd1b2e5813bb8985b70febf463dfc53 /src/ecommon | |
parent | ebff0ef78313b1090b2efa3a8d64d5493a9a5aed (diff) | |
download | plugin-7eaba97f02e18d8610ea004851ab2ec8b8edeebb.tar.gz plugin-7eaba97f02e18d8610ea004851ab2ec8b8edeebb.tar.bz2 plugin-7eaba97f02e18d8610ea004851ab2ec8b8edeebb.tar.xz plugin-7eaba97f02e18d8610ea004851ab2ec8b8edeebb.zip |
Remove inter server ip check because it moving to upstream.
Diffstat (limited to 'src/ecommon')
-rw-r--r-- | src/ecommon/ip.c | 25 | ||||
-rw-r--r-- | src/ecommon/ip.h | 9 |
2 files changed, 0 insertions, 34 deletions
diff --git a/src/ecommon/ip.c b/src/ecommon/ip.c deleted file mode 100644 index eb6d792..0000000 --- a/src/ecommon/ip.c +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. -// Copyright (c) 2014 Evol developers - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "common/HPMi.h" -#include "common/malloc.h" -#include "common/mmo.h" -#include "common/socket.h" -#include "common/strlib.h" - -#include "ecommon/ip.h" - -bool checkAllowedIp(const char* const mask, const char* const ip) -{ - char buf[1000]; - - strcpy(buf, ","); - strcat(buf, ip); - strcat(buf, ","); - - return strstr(mask, buf) != NULL; -} diff --git a/src/ecommon/ip.h b/src/ecommon/ip.h deleted file mode 100644 index 1b0ba18..0000000 --- a/src/ecommon/ip.h +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. -// Copyright (c) 2014 Evol developers - -#ifndef EVOL_COMMON_IP -#define EVOL_COMMON_IP - -bool checkAllowedIp(const char* const mask, const char* const ip); - -#endif // EVOL_COMMON_IP |