diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2020-08-19 11:24:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 11:24:02 +0000 |
commit | 78d12b1e1d2517f152e8f35233168de723eaed83 (patch) | |
tree | 1b0790ef40a53931bdc04bc70f6cab686a76daa2 /daemon | |
parent | 559376ad46c4d3a4b7058bd186d2fe75849500a4 (diff) |
Add missing value to list simple pattern
Fix access using Unix sockets when Netdata is installed with kickstart-static64
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/main.c b/daemon/main.c index a3b63ce513..1f02b24e73 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -118,6 +118,7 @@ int make_dns_decision(const char *section_name, const char *config_name, const c if(strcmp("heuristic",value)) error("Invalid configuration option '%s' for '%s'/'%s'. Valid options are 'yes', 'no' and 'heuristic'. Proceeding with 'heuristic'", value, section_name, config_name); + return simple_pattern_is_potential_name(p); } @@ -163,9 +164,9 @@ void web_server_config_options(void) "localhost fd* 10.* 192.168.* 172.16.* 172.17.* 172.18.*" " 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.*" " 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.*" - " 172.31.*"), NULL, SIMPLE_PATTERN_EXACT); + " 172.31.* UNKNOWN"), NULL, SIMPLE_PATTERN_EXACT); web_allow_netdataconf_dns = - make_dns_decision(CONFIG_SECTION_WEB, "allow netdata.conf by dns", "no", web_allow_mgmt_from); + make_dns_decision(CONFIG_SECTION_WEB, "allow netdata.conf by dns", "no", web_allow_netdataconf_from); web_allow_mgmt_from = simple_pattern_create(config_get(CONFIG_SECTION_WEB, "allow management from", "localhost"), NULL, SIMPLE_PATTERN_EXACT); |