mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: fix regression in ipv6 routing tables
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
@@ -69,14 +69,11 @@ mwan3_add_all_routes()
|
||||
|
||||
mwan3_rtmon_route_handle()
|
||||
{
|
||||
local action route_line family tbl device line tid source_routing
|
||||
local action route_line family tbl device line tid
|
||||
|
||||
route_line=${1##"Deleted "}
|
||||
route_family=$2
|
||||
|
||||
config_get_bool source_routing globals source_routing 0
|
||||
[ $source_routing -eq 0 ] && unset source_routing
|
||||
|
||||
if [ "$route_line" = "$1" ]; then
|
||||
action="replace"
|
||||
$IPS -! add mwan3_connected_${route_family##ip} ${route_line%% *}
|
||||
@@ -143,7 +140,8 @@ main()
|
||||
{
|
||||
local IP family
|
||||
|
||||
config_load mwan3
|
||||
mwan3_init
|
||||
|
||||
family=$1
|
||||
[ -z $family ] && family=ipv4
|
||||
if [ "$family" = "ipv6" ]; then
|
||||
@@ -155,7 +153,6 @@ main()
|
||||
else
|
||||
IP="$IP4"
|
||||
fi
|
||||
mwan3_init
|
||||
sh -c "echo \$\$; exec $IP monitor route" | {
|
||||
read -r monitor_pid
|
||||
trap_with_arg func_trap "$monitor_pid" SIGINT SIGTERM SIGKILL
|
||||
|
||||
Reference in New Issue
Block a user