public static void Add(string pattern) { if (!Firewall.m_Blocked.Contains(pattern)) { Firewall.m_Blocked.Add(pattern); } Firewall.Save(); }
public static void Add(IPAddress ip) { if (!Firewall.m_Blocked.Contains(ip)) { Firewall.m_Blocked.Add(ip); } Firewall.Save(); }
public static void Add(object obj) { if (!(obj is IPAddress) && !(obj is string)) { return; } if (!Firewall.m_Blocked.Contains(obj)) { Firewall.m_Blocked.Add(obj); } Firewall.Save(); }
public static void Remove(IPAddress ip) { Firewall.m_Blocked.Remove(ip); Firewall.Save(); }
public static void RemoveAt(int index) { Firewall.m_Blocked.RemoveAt(index); Firewall.Save(); }
public static void Remove(string pattern) { Firewall.m_Blocked.Remove(pattern); Firewall.Save(); }