From: Peter van Dijk Date: Mon, 10 Jun 2013 12:20:37 +0000 (+0200) Subject: initialise server-id after all parsing is done, instead of half way through. Fixes... X-Git-Tag: auth-3.3-rc2~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3363ef7a9200b0f989eaf746c633ba36cac5549a;p=thirdparty%2Fpdns.git initialise server-id after all parsing is done, instead of half way through. Fixes situations where server-id was emptied explicitly. Reported by Wouter de Jong --- diff --git a/pdns/receiver.cc b/pdns/receiver.cc index 826bdd5d42..99b94f7b80 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -524,12 +524,6 @@ int main(int argc, char **argv) daemonize(); } - if(::arg()["server-id"].empty()) { - char tmp[128]; - gethostname(tmp, sizeof(tmp)-1); - ::arg().set("server-id")=tmp; - } - if(isGuarded(argv)) { L<