Closed jsonmona closed 2 months ago
Hello, Feel free to fork and modify it for your needs, but for accepting a PR regarding adding a config file. It would need to:
I think it is better to have tunnel definitions to be separated from other config file because that would allow reloading the file. This way, tunnels can be added or removed without interrupting already connected ones.
But on the second thought, since current code simply spawns tasks, making tunnels dynamically adjustable seems quite infeasible.
Describe the feature
From client side, all tunnels must be specified on command line. This feature request is to enable users to specify tunnels in a separate config file.
As far as I can tell, from server side, restrictions already can be specified on separate file, so this is not an issue.
Describe the reason for such feature
cmd
or PowerShell. Therefore, the only way to specify command line is to use a shortcut file, which has length limit of whopping 260. I can barely specify one tunnel alongside full path to the executable and other flags.Describe alternatives you've considered
I don't see any existing options would enable this. All I need is to shorten the command line, so using a separate config file for all settings could be a solution. But I think that would be significantly harder to implement.
Also, I'm willing to write a PR for this issue. I'm considering file format of:
I'll start implementing if you're ok with this format. Please let me know your thoughts.