From: Aaron Lipinski Date: Tue, 6 Apr 2021 04:57:59 +0000 (+1200) Subject: reset addr family before searching again X-Git-Tag: v0.95~6^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd29a7e6306743c04171decff08334cc3fca6e8e;p=thirdparty%2Fmtr.git reset addr family before searching again --- diff --git a/ui/gtk.c b/ui/gtk.c index aa07324..6e3a376 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -246,6 +246,7 @@ static gint Host_activate( struct mtr_ctl *ctl = (struct mtr_ctl *) data; struct addrinfo *res = NULL; + ctl->af = DEFAULT_AF; // should this obey the cmd line option? ctl->Hostname = gtk_entry_get_text(GTK_ENTRY(entry)); if (get_hostent_from_name(ctl, &res, ctl->Hostname) == 0) { net_reopen(ctl, res);