From: R.E. Wolff Date: Wed, 26 Oct 2016 06:52:49 +0000 (+0200) Subject: fixed dynamic DNS on/off switch. Fixed #160 X-Git-Tag: v0.88~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e670214ca2f88d23bfd5d4e73b5a378a8221799;p=thirdparty%2Fmtr.git fixed dynamic DNS on/off switch. Fixed #160 --- diff --git a/dns.c b/dns.c index 460f212..e945c04 100644 --- a/dns.c +++ b/dns.c @@ -275,7 +275,7 @@ extern char *dns_lookup(struct mtr_ctl *ctl, ip_t * ip) { char *t; - if (!ctl->dns) + if (!ctl->dns || !ctl->use_dns) return NULL; t = dns_lookup2(ctl, ip); return t;