You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
395 B
9 lines
395 B
#!/usr/bin/env bash
|
|
|
|
echo "Starting up localhost.run tunnel..."
|
|
ssh -o StrictHostKeyChecking=no -R 80:localhost:8000 nokey@localhost.run 2>&1 | while IFS= read -r line; do
|
|
if [[ "$line" =~ https://([a-zA-Z0-9]+\.lhr\.life) ]]; then
|
|
echo "Your free localhost.run tunnel is now active. Please set your client SERVER_CONNECTION_URL env var to: \"wss://${BASH_REMATCH[1]}\""
|
|
fi
|
|
done
|