mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-26 01:06:01 +03:00
[GH-ISSUE #32] Customizable CTRL_PORT for tunnelto_server? #29
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mxxk on GitHub (Nov 9, 2020).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/32
The environment variable
CTRL_PORTis useful to override the control port used for thetunneltoclient to connect totunnelto_server, but there seems to be no equivalent to override the control porttunnelto_serverbinds to, as it is hardcoded:github.com/agrinman/tunnelto@b3bb05709f/tunnelto_server/src/main.rs (L59)github.com/agrinman/tunnelto@b3bb05709f/tunnelto_server/src/remote.rs (L7)While not critical, it would be nice to set the
tunnelto_servercontrol port via an environment variable. 🙂The larger context for doing this is https://github.com/mxxk/tunnelto-proxy, which provides a proxy configuration for multiplexing between control traffic (on the root domain) and tunnel traffic (on subdomains). Having something like this be integrated into
tunneltodirectly would be a very significant undertaking, and different from the current approach used bytunnelto.devwhere the control traffic is expected atwormhole.tunnelto.dev(and presumablywormholeis inBLOCKED_SUB_DOMAINS), while all other (tunnel) traffic is expected at*.tunnelto.dev.@agrinman commented on GitHub (Nov 10, 2020):
Happy to take a PR on this (with a fallback default to 5000)