File tree Expand file tree Collapse file tree 2 files changed +1
-34
lines changed
Models/AzureFirewallPolicy Expand file tree Collapse file tree 2 files changed +1
-34
lines changed Original file line number Diff line number Diff line change 19
19
--->
20
20
21
21
## Upcoming Release
22
+ * Bugfix in PSAzureFirewallPolicyThreatIntelWhitelist for FirewallPolicy
22
23
* Added optional parameter ` -IsSecuritySite ` to the following cmdlet:
23
24
- ` New-AzVpnSite `
24
25
* Support for new Match Variables in WAF Exclusions
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ public string[] FQDNs
31
31
get { return this . fqdns ; }
32
32
set
33
33
{
34
- ValidateFqdns ( value ) ;
35
34
fqdns = value ;
36
35
}
37
36
}
@@ -41,41 +40,8 @@ public string[] IpAddresses
41
40
get { return this . ipAddresses ; }
42
41
set
43
42
{
44
- ValidateIpAddresses ( value ) ;
45
43
ipAddresses = value ;
46
44
}
47
45
}
48
-
49
- private const string SecureGatewayThreatIntelFqdnRegex = "^\\ *?([a-zA-Z0-9\\ -\\ .]?[a-zA-Z0-9])*$" ;
50
-
51
- private void ValidateFqdns ( string [ ] fqdns )
52
- {
53
- if ( fqdns == null )
54
- return ;
55
-
56
- var matchingRegEx = new Regex ( SecureGatewayThreatIntelFqdnRegex ) ;
57
- foreach ( var fqdn in fqdns )
58
- {
59
- if ( ! matchingRegEx . IsMatch ( fqdn ) )
60
- {
61
- throw new PSArgumentException ( String . Format ( "\' {0}\' is not a valid threat intel whitelist FQDN" , fqdn ) ) ;
62
- }
63
- }
64
- }
65
-
66
- private void ValidateIpAddresses ( string [ ] ipAddresses )
67
- {
68
- if ( ipAddresses == null )
69
- return ;
70
-
71
- foreach ( var ip in ipAddresses )
72
- {
73
- IPAddress ipVal ;
74
- if ( ! IPAddress . TryParse ( ip , out ipVal ) || ipVal . AddressFamily != System . Net . Sockets . AddressFamily . InterNetwork )
75
- {
76
- throw new PSArgumentException ( String . Format ( "\' {0}\' is not a valid threat intel whitelist Ip Address" , ip ) ) ;
77
- }
78
- }
79
- }
80
46
}
81
47
}
You can’t perform that action at this time.
0 commit comments