diff --git a/web/ssh-tunnelier b/web/ssh-tunnelier index d500156..505800f 100755 --- a/web/ssh-tunnelier +++ b/web/ssh-tunnelier @@ -91,10 +91,10 @@ function read_config() { while read line; do id=$( get_id "$line" ) pid=$( get_pid "$id" ) - printf "%-3d %-7s %s\n" $i "$pid" "$line" + printf "%-3d %-7s %s\n" $i "$pid" "$line" | sed 's,:localhost:,:'$LOCALHOSTSYMBOL':,g' ids+=( $id ) i=$(( i + 1 )) - done < <( grep -v ^# "$CONF" | grep '[a-zA-Z]' ) | sed 's,:localhost:,:'$LOCALHOSTSYMBOL':,g' + done < <( grep -v ^# "$CONF" | grep '[a-zA-Z]' ) } function run_args() {