diff --git a/exclude_mode_cfg_gen/update_exclude_routes.sh b/exclude_mode_cfg_gen/update_exclude_routes.sh index 3829fdb..0fb4ea9 100644 --- a/exclude_mode_cfg_gen/update_exclude_routes.sh +++ b/exclude_mode_cfg_gen/update_exclude_routes.sh @@ -19,7 +19,7 @@ file_user_hostnames="hosts_user_list.txt" file_for_calc="russian_subnets_list_raw_for_calc.txt" file_processed="russian_subnets_list_processed.txt" gateway_for_internal_ip=`ip route | awk '/default/ {print $3; exit}'` -interface=`ip link show | awk -F ': ' '/state UP/ {print $2}'` +interface=`ip link show | awk -F ': ' '/state UP/ {print $2}' | grep --invert-match docker | grep --invert-match veth | head -n 1` #Get addresses RU segment echo "Download RU subnets..."