mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: fix IPv6 routing add handling
This fixes routing handling. Introduced with the last version update. The following message disappears on the shell when mwan3 is called with 'mwna3 restart`. `Error: Invalid gateway address.` Signed-off-by: Florian Eckert <fe@dev.tdt.de> [aaronjg@stanford.edu: fully unset variable and handle ipv4 as well] Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
committed by
Aaron Goodman
parent
a796b7a84e
commit
8e3e6f8dde
@@ -518,6 +518,8 @@ mwan3_create_iface_route()
|
||||
network_get_gateway${V_} via "$1"
|
||||
fi
|
||||
|
||||
( [ -z "$via" ] || [ "$via" = "0.0.0.0" ] || [ "$via" = "::" ] ) && unset via
|
||||
|
||||
network_get_metric metric "$1"
|
||||
|
||||
$IP route flush table "$id"
|
||||
|
||||
Reference in New Issue
Block a user