]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fixed showips.. -- Sergey v0.84
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Sat, 23 Feb 2013 15:13:40 +0000 (16:13 +0100)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Sat, 23 Feb 2013 15:13:40 +0000 (16:13 +0100)
curses.c

index 5d6c483132ee38992163f2894d4b15721e1b6053..dad711746bd9e0ba3e248e36e28f1e2bf3c182e5 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -410,7 +410,8 @@ void mtr_curses_hosts(int startstat)
         name = dns_lookup(addrs);
         if (! net_up(at)) attron(A_BOLD);
         if (name != NULL) {
-         printw("\n    %s", name);
+         if (show_ips) printw("\n    %s (%s)", name, strlongip(addrs));
+         else printw("\n    %s", name);
         } else {
          printw("\n    %s", strlongip( addrs ) );
         }