feat: --experimental-use-manager

This commit is contained in:
Cyber 2024-08-30 20:33:00 +02:00
parent e74b73a640
commit 9aed446751

View File

@ -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