From fd29a7e6306743c04171decff08334cc3fca6e8e Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Tue, 6 Apr 2021 16:57:59 +1200 Subject: [PATCH] reset addr family before searching again --- ui/gtk.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.3