Fix clustered Antietcd support

This commit is contained in:
Vitaliy Filippov
2024-07-19 18:58:58 +03:00
parent f8edfb4a71
commit 3018352443
2 changed files with 13 additions and 5 deletions
+4
View File
@@ -30,7 +30,11 @@ async function create_http_server(cfg, handler)
}
try
{
let err;
server.once('error', e => err = e);
server.listen(cfg.mon_http_port || 8060, cfg.mon_http_ip || undefined);
if (err)
throw err;
}
catch (e)
{