Skip to content

Instantly share code, notes, and snippets.

@guangrei
Created November 14, 2018 16:05
Show Gist options
  • Save guangrei/513ecc8cf29ddb2d192deb774fb75462 to your computer and use it in GitHub Desktop.
Save guangrei/513ecc8cf29ddb2d192deb774fb75462 to your computer and use it in GitHub Desktop.
localtunnel.me auto reconnect
#!/bin/bash
DOMAIN=$1
PORT=$2
if [ $# -eq 0 ] ; then
echo "No arguments supplied"
echo "Usage: command DOMAIN PORT"
exit 1
fi
while true
do lt -p $PORT -s $DOMAIN
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment