IPData.cs 351 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. public class IPData
  3. {
  4. public static List<string> IPList = new List<string>();
  5. public static bool AddIP(string ip)
  6. {
  7. if(!IPList.Contains(ip))
  8. {
  9. IPList.Add(ip);
  10. return true;
  11. }
  12. return false;
  13. }
  14. public static void CheckIP()
  15. {
  16. }
  17. }