HttpRafa / modflared

Automatically connects you to a Cloudflare tunnel without having to install cloudflared separately.
MIT License
43 stars 6 forks source link

Add support for "Open to Tunnel" #54

Open RGFTheCoder opened 1 week ago

RGFTheCoder commented 1 week ago

Is your feature request related to a problem? Please describe. On my end if i want to quickly play with friends i can open to lan then start the cloudflared tunnel with the random port.

Describe the solution you'd like It would be nice if this mod added support for the cloudflared tunnel ??? run command as an "Open to Cloudflared" button. It would do the same thing as "Open to LAN" but additionally run the cloudflared tunnel.

Describe alternatives you've considered The alternative is manually modifying the tunnel config, but this mod already ensures cloudflared is downloaded, so i feel that adding this would be feasible.

Additional context This feature would likely require the hoster to authenticate with their cloudflare account in order to host the tunnel. The DNS txt record would be preexisting and this would just create the tunnel only when necessary.

HttpRafa commented 1 week ago

It's a good idea; I just need to see when I have the time and motivation to implement this feature. If someone else wants to add this feature, I would be very grateful as well.