From 5adbe551ad4573741ed0ff8dbb4357f9777abdbd Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 28 Nov 2022 15:47:46 +0300 Subject: [PATCH] small fix --- exclude_mode_cfg_gen/update_exclude_routes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..."