Merge pull request #404 from Icinga:fix/rest_api_listen_address

Fix: REST-Api address argument not being used

Fixes missing address attribute for REST-Api daemon, making it unable to change the listening address
This commit is contained in:
Lord Hepipud 2021-11-16 17:15:10 +01:00 committed by GitHub
commit 2ce536c95e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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,

View file

@ -71,6 +71,7 @@ function Start-IcingaWindowsRESTApi()
-Command 'New-IcingaForWindowsRESTApi' `
-CmdParameters @{
'IcingaDaemonData' = $global:IcingaDaemonData;
'Address' = $Address;
'Port' = $Port;
'RootFolder' = $RootFolder;
'CertFile' = $CertFile;