traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.64k stars 337 forks source link

use addrs for static host ordering in curses #429

Closed bewing closed 2 years ago

bewing commented 2 years ago

Change d2552ca has the side effect of moving hosts around in the multipath view, as the last host to reply to a packet was set as addr. Using addrs[0] istead of addr to draw the first host keeps the ordering deterministic, in order of first reply.

acoul commented 2 years ago

I can confirm that compiling main tree with this patch resolves the --address issue and both

./mtr sip.nexmo.com -u & ./mtr sip.nexmo.com -e

work as they should