TestParseCore.cs 668 B

1234567891011121314151617181920
  1. 
  2. namespace molilian.core
  3. {
  4. public partial class TestParseCore
  5. {
  6. public static List<string> _test_oaid = [
  7. "C712574A37194CC8AA2C94F4E94BF632069e05173327fe9168cc3829a5a22820",
  8. "E5519EE0E4724362BD71D42F8D5CD0200b57296c00ba6e16d2b0ff67abb97a87",
  9. "8E61FDE9411443F9A3642A6ACAD42747EC7D424979CC9C51CB1670D630EE7D8F"
  10. ];
  11. public static bool InWhitelist(string ip, string oaid)
  12. {
  13. if (_test_oaid.Any(e => e.ToLower().Equals(oaid.ToLower()))) return true;
  14. if (!string.IsNullOrEmpty(ip) && ip.StartsWith("127.0.0")) return true;
  15. return false;
  16. }
  17. }
  18. }