mnscript
string[] FirewallRules.GetAllowed()
Description ​
Return the list of allowed IPs.
Returns ​
string[]
- A string array containing IPs.
Example ​
msc
using System;
using Console;
using Firewall;
using Application;
using Array;
//Request Admin Perms
Application.RequestAdminPrivilege();
FirewallRules rules = Firewall.GetFirewallRules();
//Print Out Allowed IPs
string[] allowed = rules.GetAllowed();
number aI = 1;
Console.WriteLine("Allowed:");
while ( Array.Length(allowed) >= aI ) {
Console.WriteLine(allowed[aI]);
aI = aI + 1;
}