using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
using ProtoCSStruct;
using Sog.IO;
namespace Game
{
///
/// ip黑白名单列表
///
public static class LimitIPList
{
private static FileStringIDList m_whiteList = null; //内测版本更新白名单
private static FileStringIDList m_whiteDeviceIdList = null;
///
/// 检验是否在内测版本白名单中
///
///
///
public static bool IsInWhiteList(string ip, string deviceId)
{
if (string.IsNullOrEmpty(ip) && string.IsNullOrEmpty(deviceId))
{
return false;
}
return LimitIpDevice.CheckInWhiteIp(ip) || LimitIpDevice.CheckInWhiteDeviceId(deviceId);
}
public static void Clear()
{
LimitIpDevice.Clear();
}
}
}