@cryptotaxi247 / netdata-1 / commits / 78d12b1e1

Add missing value to list simple pattern

Fix access using Unix sockets when Netdata is installed with kickstart-static64

thiagoftsm committed Aug 19, 2020 at 11:24 UTC 78d12b1e1d2517f152e8f35233168de723eaed83
2 files changed +3 -4
daemon/main.c
+3 -2
@@ -118,6 +118,7 @@ int make_dns_decision(const char *section_name, const char *config_name, const c
118 if(strcmp("heuristic",value))
119 error("Invalid configuration option '%s' for '%s'/'%s'. Valid options are 'yes', 'no' and 'heuristic'. Proceeding with 'heuristic'",
120 value, section_name, config_name);
121 +
122 return simple_pattern_is_potential_name(p);
123 }
124
@@ -163,9 +164,9 @@ void web_server_config_options(void)
164 "localhost fd* 10.* 192.168.* 172.16.* 172.17.* 172.18.*"
165 " 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.*"
166 " 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.*"
166 - " 172.31.*"), NULL, SIMPLE_PATTERN_EXACT);
167 + " 172.31.* UNKNOWN"), NULL, SIMPLE_PATTERN_EXACT);
168 web_allow_netdataconf_dns =
168 - make_dns_decision(CONFIG_SECTION_WEB, "allow netdata.conf by dns", "no", web_allow_mgmt_from);
169 + make_dns_decision(CONFIG_SECTION_WEB, "allow netdata.conf by dns", "no", web_allow_netdataconf_from);
170 web_allow_mgmt_from =
171 simple_pattern_create(config_get(CONFIG_SECTION_WEB, "allow management from", "localhost"),
172 NULL, SIMPLE_PATTERN_EXACT);
web/server/static/static-threaded.c
-2
@@ -248,8 +248,6 @@ static int web_server_rcv_callback(POLLINFO *pi, short int *events) {
248 struct web_client *w = (struct web_client *)pi->data;
249 int fd = pi->fd;
250
251 - //BRING IT TO HERE
252 -
251 if(unlikely(web_client_receive(w) < 0))
252 return -1;
253