mirror of
https://github.com/falcosecurity/falco.git
synced 2026-03-18 18:58:41 +00:00
refactor: use configured listen address for liveness check
Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
@@ -100,7 +100,8 @@ void falco_webserver::start(const falco::app::state &state,
|
||||
if(webserver_config.m_ssl_enabled) {
|
||||
schema = "https";
|
||||
}
|
||||
std::string url = schema + "://localhost:" + std::to_string(webserver_config.m_listen_port);
|
||||
std::string url = schema + "://" + webserver_config.m_listen_address + ":" +
|
||||
std::to_string(webserver_config.m_listen_port);
|
||||
httplib::Client cli(url);
|
||||
|
||||
const int max_retries = 10;
|
||||
|
||||
Reference in New Issue
Block a user