From 7eaba97f02e18d8610ea004851ab2ec8b8edeebb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Jul 2015 01:57:52 +0300 Subject: Remove inter server ip check because it moving to upstream. --- src/ecommon/ip.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/ecommon/ip.c (limited to 'src/ecommon/ip.c') 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 -#include -#include - -#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; -} -- cgit v1.2.3-70-g09d2