From 79d22ef1270ed2dce4b5e7b43bb645732c88624d Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Tue, 16 Nov 2021 16:28:00 +0100 Subject: [PATCH] Fixes Rest-Api address argument not being used --- doc/100-General/10-Changelog.md | 1 + lib/daemons/RestAPI/daemon/New-IcingaForWindowsRESTApi.psm1 | 1 + lib/daemons/RestAPI/daemon/Start-IcingaWindowsRESTApi.psm1 | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 762ef18..430a5b7 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -13,6 +13,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic ### Bugfixes +* [#402](https://github.com/Icinga/icinga-powershell-framework/pull/402) Fixes missing address attribute for REST-Api daemon, making it unable to change the listening address * [#403](https://github.com/Icinga/icinga-powershell-framework/pull/403) Fixes memory leak on newly EventLog reader for CLI event stream ## 1.7.1 (2021-11-11) diff --git a/lib/daemons/RestAPI/daemon/New-IcingaForWindowsRESTApi.psm1 b/lib/daemons/RestAPI/daemon/New-IcingaForWindowsRESTApi.psm1 index 722cd49..49d360a 100644 --- a/lib/daemons/RestAPI/daemon/New-IcingaForWindowsRESTApi.psm1 +++ b/lib/daemons/RestAPI/daemon/New-IcingaForWindowsRESTApi.psm1 @@ -3,6 +3,7 @@ function New-IcingaForWindowsRESTApi() # Allow us to parse the framework global data to this thread param ( $IcingaDaemonData, + [string]$Address = '', $Port, $RootFolder, $CertFile, diff --git a/lib/daemons/RestAPI/daemon/Start-IcingaWindowsRESTApi.psm1 b/lib/daemons/RestAPI/daemon/Start-IcingaWindowsRESTApi.psm1 index 02a5740..182d79d 100644 --- a/lib/daemons/RestAPI/daemon/Start-IcingaWindowsRESTApi.psm1 +++ b/lib/daemons/RestAPI/daemon/Start-IcingaWindowsRESTApi.psm1 @@ -71,6 +71,7 @@ function Start-IcingaWindowsRESTApi() -Command 'New-IcingaForWindowsRESTApi' ` -CmdParameters @{ 'IcingaDaemonData' = $global:IcingaDaemonData; + 'Address' = $Address; 'Port' = $Port; 'RootFolder' = $RootFolder; 'CertFile' = $CertFile;