Skip to content

Commit

Permalink
Update mk-docker-opts.sh
Browse files Browse the repository at this point in the history
update route conflict
  • Loading branch information
zhangzhangzf authored Mar 10, 2022
1 parent 88e7ecc commit 50c2cfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/mk-docker-opts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,7 @@ dot_four=$((${dot_four}-1))
subnets_pre=`echo ${subnets}|cut -d. -f 1,2,3`
subnets_lat=`echo ${subnets}|cut -d/ -f2`
subnets=${subnets_pre}.${dot_four}/${subnets_lat}
ip route del ${subnets}
route_invalid=`ip route show|grep ${subnets}|grep via`
if [ "x${route_invalid}" != "x" ];then
ip route del ${route_invalid}
fi

0 comments on commit 50c2cfe

Please sign in to comment.