From: bert hubert Date: Thu, 25 Dec 2014 19:47:01 +0000 (+0100) Subject: replace dots in hostname by underscores for carbon reporting, and document this. X-Git-Tag: rec-3.7.0-rc1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46541751ed1c3bc051d78217543d5fc76733e212;p=thirdparty%2Fpdns.git replace dots in hostname by underscores for carbon reporting, and document this. --- diff --git a/pdns/auth-carbon.cc b/pdns/auth-carbon.cc index a1811fbaaa..5b87f04d0a 100644 --- a/pdns/auth-carbon.cc +++ b/pdns/auth-carbon.cc @@ -39,6 +39,7 @@ try char *p = strchr(tmp, '.'); if(p) *p=0; hostname=tmp; + boost::replace_all(hostname, ".", "_"); } BOOST_FOREACH(const string& entry, entries) { str<<"pdns."<