add backwards compatibility for http listen backlog setting
Costa Tsaousis (ktsaou) committed
Mar 13, 2017 at 22:03 UTC
5b0b88ab1b3ef68f54146f0ada19ae7d392bee78
1 file changed
+5
-2
src/main.c
+5
-2
@@ -366,7 +366,10 @@ static void backwards_compatible_config() {
366
web_server_mode = (mode)?WEB_SERVER_MODE_MULTI_THREADED:WEB_SERVER_MODE_SINGLE_THREADED;
367
}
368
369
- // move [global] options to the [api] section
369
+ // move [global] options to the [web] section
370
+ config_move(CONFIG_SECTION_GLOBAL, "http port listen backlog",
371
+ CONFIG_SECTION_WEB, "listen backlog");
372
+
373
config_move(CONFIG_SECTION_GLOBAL, "bind socket to IP",
374
CONFIG_SECTION_WEB, "bind to");
375
@@ -412,7 +415,7 @@ static void get_netdata_configured_variables() {
415
416
char buf[HOSTNAME_MAX + 1];
417
if(gethostname(buf, HOSTNAME_MAX) == -1)
415
- error("WARNING: Cannot get machine hostname.");
418
+ error("Cannot get machine hostname.");
419
420
netdata_configured_hostname = config_get(CONFIG_SECTION_GLOBAL, "hostname", buf);
421
debug(D_OPTIONS, "hostname set to '%s'", netdata_configured_hostname);