diff --git a/connect.sh b/connect.sh index 95231cf..8650cb7 100644 --- a/connect.sh +++ b/connect.sh @@ -23,4 +23,13 @@ if [ ! -f .connector ]; then fi CONNECTOR=$(cat .connector) -npx holesail $CONNECTOR + +if [[ "$1" == "--experimental-use-manager" ]]; then + echo -e "Connecting using holesail manager is experimental.\nYou can report any bugs here: https://git.ssh.surf/Cyber/dlinux-connect/issues\n" + + npx --package=holesail -- holesail-manager create $CONNECTOR --name dlinux-connect + sleep 3 # Wait for the connection to open + ssh localhost -p 8989 +else + npx holesail $CONNECTOR +fi