Example #1
0
 public static void Add(string pattern)
 {
     if (!Firewall.m_Blocked.Contains(pattern))
     {
         Firewall.m_Blocked.Add(pattern);
     }
     Firewall.Save();
 }
Example #2
0
 public static void Add(IPAddress ip)
 {
     if (!Firewall.m_Blocked.Contains(ip))
     {
         Firewall.m_Blocked.Add(ip);
     }
     Firewall.Save();
 }
Example #3
0
 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();
 }
Example #4
0
 public static void Remove(IPAddress ip)
 {
     Firewall.m_Blocked.Remove(ip);
     Firewall.Save();
 }
Example #5
0
 public static void RemoveAt(int index)
 {
     Firewall.m_Blocked.RemoveAt(index);
     Firewall.Save();
 }
Example #6
0
 public static void Remove(string pattern)
 {
     Firewall.m_Blocked.Remove(pattern);
     Firewall.Save();
 }