mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix log flood
This commit is contained in:
parent
c137e73e4f
commit
bb03165dc9
1 changed files with 10 additions and 2 deletions
|
@ -86,9 +86,17 @@ set_routes_intf() {
|
|||
weight=1
|
||||
fi
|
||||
if [ "$multipath_config_route" = "backup" ]; then
|
||||
routesintfbackup="$routesintf nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
if [ -z "$routesintfbackup" ]; then
|
||||
routesintfbackup="nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
else
|
||||
routesintfbackup="$routesintfbackup nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
fi
|
||||
else
|
||||
routesintf="$routesintf nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
if [ -z "$routesintf" ]; then
|
||||
routesintf="nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
else
|
||||
routesintf="$routesintf nexthop via $interface_gw dev $interface_if weight $weight"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue