]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fixed dynamic DNS on/off switch. Fixed #160
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 26 Oct 2016 06:52:49 +0000 (08:52 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 26 Oct 2016 06:52:49 +0000 (08:52 +0200)
dns.c

diff --git a/dns.c b/dns.c
index 460f2125e9c6bcbb500fcc7b636a1f005b493410..e945c0415d4a916d500a7f13d3c6da1d56cd0433 100644 (file)
--- 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;