From 298cd8da1f742549a21605a0f182f09709c5ad25 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 29 Jun 2023 23:12:52 -0400 Subject: [PATCH] properly handle the configured REST address for the "primary" DVM; --- src/monitor/MonitorMainWnd.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/monitor/MonitorMainWnd.h b/src/monitor/MonitorMainWnd.h index 60fb9ffb..8136e35f 100644 --- a/src/monitor/MonitorMainWnd.h +++ b/src/monitor/MonitorMainWnd.h @@ -167,8 +167,11 @@ private: mainChNo = chNo; - //std::string restApiAddress = networkConf["restAddress"].as("127.0.0.1"); - std::string restApiAddress = std::string("127.0.0.1"); + std::string restApiAddress = networkConf["restAddress"].as("127.0.0.1"); + if (restApiAddress == "0.0.0.0") { + restApiAddress = std::string("127.0.0.1"); + } + uint16_t restApiPort = (uint16_t)networkConf["restPort"].as(REST_API_DEFAULT_PORT); std::string restApiPassword = networkConf["restPassword"].as();