Skip to content

Commit

Permalink
Fixing creation of rule when multiple icmp_type are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
webalexeu authored Sep 2, 2024
1 parent 537c80b commit 7987459
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file.

## Release 1.5.2 (2024-09-02)

[Full Changelog](https://github.com/webalexeu/puppet-windows_firewall/compare/v1.5.1...v1.5.2)

**Features**

**Bugfixes**

- [Cannot create rule when multiple icmp_type are defined](https://github.com/webalexeu/puppet-windows_firewall/issues/33)

**Known Issues**

## Release 1.5.1 (2024-08-24)

[Full Changelog](https://github.com/webalexeu/puppet-windows_firewall/compare/v1.5.0...v1.5.1)
Expand All @@ -14,6 +26,8 @@ All notable changes to this project will be documented in this file.

**Known Issues**

- Cannot create rule when multiple icmp_type are defined

## Release 1.5.0 (2024-06-07)

[Full Changelog](https://github.com/webalexeu/puppet-windows_firewall/compare/v1.4.2...v1.5.0)
Expand Down
14 changes: 7 additions & 7 deletions lib/ps/windows_firewall/ps-bridge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ function create {
if ($ProtocolCode) {
$params.Add("ProtocolCode", $ProtocolCode)
}
if ($IcmpType) {
$params.Add("IcmpType", $IcmpType)
}
# `$LocalPort` and `$RemotePort` will always be strings since we were
# `$IcmpType, `$LocalPort` and `$RemotePort` will always be strings since we were
# invoked with `powershell -File`, rather then refactor the loader to use
# `-Command`, just do a simple string split
if ($IcmpType) {
$params.Add("IcmpType", ($IcmpType -split ','))
}
if ($LocalPort) {
$params.Add("LocalPort", ($LocalPort -split ','))
}
Expand Down Expand Up @@ -268,12 +268,12 @@ function update {
if ($ProtocolCode) {
$params.Add("ProtocolCode", $ProtocolCode)
}
# `$IcmpType, `$LocalPort` and `$RemotePort` will always be strings since we were
# invoked with `powershell -File`, rather then refactor the loader to use
# `-Command`, just do a simple string split
if ($IcmpType) {
$params.Add("IcmpType", ($IcmpType -split ','))
}
# `$LocalPort` and `$RemotePort` will always be strings since we were
# invoked with `powershell -File`, rather then refactor the loader to use
# `-Command`, just do a simple string split
if ($LocalPort) {
$params.Add("LocalPort", ($LocalPort -split ','))
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webalex-windows_firewall",
"version": "1.5.1",
"version": "1.5.2",
"author": "webalex",
"summary": "Manage the windows firewall with Puppet",
"license": "Apache-2.0",
Expand Down

0 comments on commit 7987459

Please sign in to comment.