Closed rpaaron closed 3 years ago
Yeah.... work needs to be done to be able to switch address families, right?
Exactly!
The annoying thing is that starting without a target and then specifying the target in the gui is a way to work with mtr, but if it chooses the AF wrong with the default target that would be annoying.
No default target/destination leads to AF_INET6
on most systems, because localhost resolves to ::1. But as the GUI allows to switch the target/destination (while the TUI doesn't), the address family needs to be re-evaluated with each target/destination change.
Fixes https://github.com/traviscross/mtr/issues/378
I moved the "starting a new traceroute" part of
net_reopen
to it single caller ingtk.c
Then moved the common parts ofnet_open
tonet_reopen
including the initialisation of the source addresses, and now callnet_reopen
fromnet_open