@cryptotaxi247 / netdata-1 / commits / 8578af3c2

disabled mirror and debug urls in production

Costa Tsaousis (ktsaou) committed Dec 8, 2015 at 02:18 UTC 8578af3c2165263e3c202c7de93a1f6a0a54e43d
1 file changed +2
src/web_client.c
+2
@@ -1051,6 +1051,7 @@ void web_client_process(struct web_client *w) {
1051 rrd_stats_graph_json(st, url, w->response.data);
1052 }
1053 }
1054 +#ifdef NETDATA_INTERNAL_CHECKS
1055 else if(strcmp(tok, "debug") == 0) {
1056 buffer_flush(w->response.data);
1057
@@ -1085,6 +1086,7 @@ void web_client_process(struct web_client *w) {
1086 // just leave the buffer as is
1087 // it will be copied back to the client
1088 }
1089 +#endif
1090 else if(strcmp(tok, "list") == 0) {
1091 code = 200;
1092