- Fix rule duplicate bug.
This commit is contained in:
@@ -948,6 +948,7 @@ function bridge_up
|
||||
|
||||
log_trace "Network" "Configure IP rule and routing [${bu_bridge_device}]..."
|
||||
|
||||
${DEBUG} ip rule del from ${bu_peer_address} 2>/dev/null
|
||||
${DEBUG} ip rule add from ${bu_peer_address} table ${bu_table}
|
||||
|
||||
for bu_tab in ${NETWORK_TABLE_LIST}
|
||||
@@ -1119,7 +1120,11 @@ network_forward_start()
|
||||
do
|
||||
network_src_tab_get ${src_id}
|
||||
|
||||
if [[ "${src_type}" != "0" ]]
|
||||
then
|
||||
${DEBUG} ip rule del from ${src_ip} 2>/dev/null
|
||||
${DEBUG} ip rule add from ${src_ip} table ${src_table}
|
||||
fi
|
||||
|
||||
if [[ "${src_port_range}" != "0" ]]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user