From b8bb8cb9460b087cc0914db95e8a7f36f69d600c Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 4 Dec 2020 16:52:58 +0100 Subject: [PATCH] Configuration.ApiBindHost: default to :: refs #8183 --- doc/17-language-reference.md | 2 +- lib/base/configuration.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/17-language-reference.md b/doc/17-language-reference.md index 4c0f76085..7d732427e 100644 --- a/doc/17-language-reference.md +++ b/doc/17-language-reference.md @@ -504,7 +504,7 @@ Environment |**Read-write.** The name of the Icinga environment. Include RunAsUser |**Read-write.** Defines the user the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig. RunAsGroup |**Read-write.** Defines the group the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig. MaxConcurrentChecks |**Read-write.** The number of max checks run simultaneously. Defaults to `512`. -ApiBindHost |**Read-write.** Overrides the default value for the ApiListener `bind_host` attribute. Not set by default. +ApiBindHost |**Read-write.** Overrides the default value for the ApiListener `bind_host` attribute. Defaults to `::`. ApiBindPort |**Read-write.** Overrides the default value for the ApiListener `bind_port` attribute. Not set by default. #### Application Runtime Constants diff --git a/lib/base/configuration.cpp b/lib/base/configuration.cpp index d163937e2..51486e41c 100644 --- a/lib/base/configuration.cpp +++ b/lib/base/configuration.cpp @@ -8,7 +8,7 @@ using namespace icinga; REGISTER_TYPE(Configuration); -String Configuration::ApiBindHost; +String Configuration::ApiBindHost{"::"}; String Configuration::ApiBindPort{"5665"}; bool Configuration::AttachDebugger{false}; String Configuration::CacheDir;