diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-24 23:48:23 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-24 23:48:23 +0200 |
commit | bd94cac548d286105ca436997d50250a4b429ad6 (patch) | |
tree | e7693c448fff1124bdc4313c121f018e5ba85462 /src/main.c | |
parent | 1ecf7bf5ff6ff0878a69472305884325a018f5c7 (diff) |
prevent remote hosts from taking the localhost position
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
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); |