
namespace molilian.core
{
    public partial class TestParseCore
    {
        public static List<string> _test_oaid = [
            "C712574A37194CC8AA2C94F4E94BF632069e05173327fe9168cc3829a5a22820",
            "E5519EE0E4724362BD71D42F8D5CD0200b57296c00ba6e16d2b0ff67abb97a87",
            "8E61FDE9411443F9A3642A6ACAD42747EC7D424979CC9C51CB1670D630EE7D8F",
            //capi
            "FF29AB4ECA4E42A7A4E90DD266AE7B94c4e39ff01b38641d1738a7d57e83511b",
            "C3516876C271412593EE38CC2FC23F453cd4f48566c73a32f0f45ca37556b3bd",

            //tbpush
            "39BF2556DB784082B805FF5766AF913D473df584ee5852bba96e537ee659f885",
            ];

        public static bool InWhitelist(string ip, string oaid)
        {
            if (_test_oaid.Any(e => e.ToLower().Equals(oaid.ToLower()))) return true;
            if (!string.IsNullOrEmpty(ip) && ip.StartsWith("127.0.0")) return true;
            return false;
        }
    }

}
