mwan3: use network_get_preferred_ipaddr6
authorJonas Lochmann <git@inkompetenz.org>
Mon, 1 Jan 2024 00:00:00 +0000 (01:00 +0100)
committerRosen Penev <rosenp@gmail.com>
Mon, 5 Feb 2024 00:39:13 +0000 (16:39 -0800)
commitfc3cc2fe5c33b36014178d3652785d00cae1c9eb
tree127d4f5985b58f7fbfeff29b12a7540a9d62606b
parent08e51ab50a452d1c6217f3a6767f66146814878b
mwan3: use network_get_preferred_ipaddr6

This updates mwan3 to use network_get_preferred_ipaddr6 instead of
network_get_ipaddr6 if possible to determine a source ip for the
connectivity checks. This avoids issues where the first ip address
that is returned from network_get_ipaddr6 does not work anymore while
the preferred one returned from network_get_preferred_ipaddr6 works.

Signed-off-by: Jonas Lochmann <git@inkompetenz.org>
net/mwan3/Makefile
net/mwan3/files/lib/mwan3/common.sh