From 5ef25b631f33b657f36b3448f6161b0ddd350d99 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 26 Aug 2022 20:57:32 +0200 Subject: [PATCH] Fix fqdn:port mg@irantu ~ > echo " mf-filter mf-filter.lan www.mf-filter www.mf-filter.lan mf-filter:80 mf-filter.lan:80 www.mf-filter:80 www.mf-filter.lan:80 https://mf-filter https://mf-filter.lan https://www.mf-filter https://www.mf-filter.lan https://mf-filter:80 https://mf-filter.lan:80 https://www.mf-filter:80 https://www.mf-filter.lan:80" | cut -d'/' -f3 | cut -d':' -f1-2 | cut -d":" -f1 mf-filter mf-filter.lan www.mf-filter www.mf-filter.lan mf-filter mf-filter.lan www.mf-filter www.mf-filter.lan mf-filter mf-filter.lan www.mf-filter www.mf-filter.lan mf-filter mf-filter.lan www.mf-filter www.mf-filter.lan --- filter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.sh b/filter.sh index 1e1238f..7ace786 100755 --- a/filter.sh +++ b/filter.sh @@ -106,7 +106,7 @@ function check_ping_connectivity { mf_ping_connectivity=0 while [[ $mf_ping_connectivity -eq 0 ]]; do # hole fqdn + port aus MF_API_URL und pinge an - mf_fqdn=$(echo "$MF_API_URL" | cut -d'/' -f3 | cut -d':' -f1-2) + mf_fqdn=$(echo "$MF_API_URL" | cut -d'/' -f3 | cut -d':' -f1-2 | cut -d":" -f1) if ping -c 1 "$mf_fqdn" > /dev/null 2>&1 ; then mf_ping_connectivity=1 else