Consider interface IP addresses preference on reconnect after reboot or network restart
After reconnect event (network restart, router reboot) reforis seems to only utilize the first IP from the list.
see https://gitlab.nic.cz/turris/reforis/reforis/-/blob/master/js/src/routerStateHandler/utils.js#L45
It is quite possible to get WAN interface IP address as first in the list and user gets redirected to unexpected location (WAN instead of LAN).
Would it be reasonable or feasible to handle preference of interfaces (LAN, WAN) from more structured data on frontend? Prefer LAN, but use WAN as fallback in case there are no LAN IPs present.
Something similar to (crude example):
{
"ips": {
"lan": [...],
"wan": [...]
}
}