list tunnels with urls

This commit is contained in:
2023-11-13 13:04:38 +02:00
parent c42080fab4
commit 5bf3546e45

View File

@@ -139,6 +139,11 @@ function read_config() {
id=$( get_id "$line" )
pid=$( get_pid "$id" )
printf "%-3d %-7s %s\n" $i "$pid" "$line" | sed 's,:localhost:,:'$LOCALHOSTSYMBOL':,g'
if [[ "$LISTONLY" -eq 1 ]]; then
if [[ -n "$pid" ]]; then
echo "$line" | parse_switches 2>/dev/stdout 1>/dev/null | sed 's,^Generated , ,'
fi
fi
ids+=( $id )
i=$(( i + 1 ))
done < <( grep -v ^# "$CONF" | grep '[a-zA-Z]' )