mirror of
https://github.com/traviscross/mtr.git
synced 2024-09-21 10:27:10 +00:00
reset addr family before searching again
This commit is contained in:
parent
cf1b9bc7e7
commit
fd29a7e630
1
ui/gtk.c
1
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);
|
||||
|
Loading…
Reference in New Issue
Block a user