list tunnels with urls
This commit is contained in:
@@ -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]' )
|
||||
|
||||
Reference in New Issue
Block a user