unjs / untun

🚇 Tunnel your local HTTP(s) server to the world! powered by Cloudflare Quick Tunnels.
Other
946 stars 14 forks source link

How do I stop? #7

Open dkotik opened 10 months ago

dkotik commented 10 months ago

Describe the feature

There is currently no command to stop the tunnel that I can find. How do I stop it?

Additional information

wdhdev commented 9 months ago

Assuming you are using a configuration like this, you should be able to close a tunnel by doing this:

const tunnel = await startTunnel({ port: 3000 });

tunnel.close();