Azure / azure-relay-bridge

Azure Relay Bridge - A cross-platform command line tool to create VPN-less TCP tunnels from and to anywhere
MIT License
121 stars 48 forks source link

Override -R option with new -T, moving the hostname location. #40

Closed clemensv closed 2 years ago

clemensv commented 2 years ago

The -R option's placement of the optional "host" portion is confusing when used with logical port names, especially when comparing it with the placement in the -L option, which groups bind_address:port and port_name/relay_name in binding order.

-R relay_name:host:[port_name/]hostport{;...}

-L [bind_address:]port[/port_name]{;...}:relay_name

To align this, this change introduces a new option -T and deprecates option -R, where the "host" moves into a more intuitive spot, grouped with the target port number.

-T relay_name:[port_name/]host:hostport{;...}