summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-24 23:48:23 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-24 23:48:23 +0200
commitbd94cac548d286105ca436997d50250a4b429ad6 (patch)
treee7693c448fff1124bdc4313c121f018e5ba85462 /src/main.c
parent1ecf7bf5ff6ff0878a69472305884325a018f5c7 (diff)
prevent remote hosts from taking the localhost position
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 885e34b13f..c602649d6c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -902,6 +902,12 @@ int main(int argc, char **argv) {
}
+ // ------------------------------------------------------------------------
+ // initialize rrd host
+
+ rrd_init(netdata_configured_hostname);
+
+
// --------------------------------------------------------------------
// find we need to send data to another netdata
@@ -920,12 +926,6 @@ int main(int argc, char **argv) {
registry_init();
- // ------------------------------------------------------------------------
- // initialize rrd host
-
- rrd_init(netdata_configured_hostname);
-
-
if(check_config)
exit(1);