diff --git a/web/ssh-tunnelier b/web/ssh-tunnelier index a8de86d..8076ea5 100755 --- a/web/ssh-tunnelier +++ b/web/ssh-tunnelier @@ -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]' )