[ncat] Support for square-bracket notation for IPv6 proxy address #1441
Labels
Comments
Committed as r37587. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When Ncat is acting as a proxy client, the remote proxy server is specified as
--proxy <addr>[:<port>]
. In case of literal IPv6 the option syntax has two quirks:--proxy 2001:db8::123:456
I am proposing to adopt the well-established square-bracket notation, making the example above much more clear (
--proxy [2001:db8::123]:456
) and also providing support for default port numbers.The controversial part is that this change breaks backward command-line compatibility. The original example would be now interpreted as the default port at address
2001:db8::123:456
, instead of port456
at address2001:db8::123
.The text was updated successfully, but these errors were encountered: