]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
reset addr family before searching again
authorAaron Lipinski <kris.lipinski@gmail.com>
Tue, 6 Apr 2021 04:57:59 +0000 (16:57 +1200)
committerAaron Lipinski <aaron.lipinski@roboticsplus.co.nz>
Thu, 8 Apr 2021 20:36:25 +0000 (08:36 +1200)
ui/gtk.c

index aa07324c00510679d268ae14cd181cfa83811474..6e3a376e732b20f554f9f70ccbaf151cb1df5f31 100644 (file)
--- 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);