Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6 abbreviated address support #539

Merged
merged 1 commit into from
Oct 13, 2022
Merged

ipv6 abbreviated address support #539

merged 1 commit into from
Oct 13, 2022

Commits on Oct 13, 2022

  1. ipv6 abbreviated address support

    This will support ipv6 addresses that are abbreviated with `::` such as
    ::1 (for 0:0:0:0:0:0:0:1) with some caveats around specifying the port
    in the host positional argument.
    
    Help output:
    
    ```
    $> ./et --help
    Remote shell for the busy and impatient
    Usage:
      et [OPTION...] [user@]host[:port]
    
      Note that 'host' can be a hostname or ipv4 address with or without a port
      or an ipv6 address. If the ipv6 address is abbreviated with :: then it must
      be specfied without a port (use -p,--port).
    
      -h, --help                 Print help
          --version              Print version
      -u, --username             Username
          --host arg             Remote host name
      ...
    ```
    Tests:
    
    ```
    $> ./et ::1 -p 8080 --macserver
    $> ./et 0:0:0:0:0:0:0:1 -p 8080 --macserver
    $> ./et 0:0:0:0:0:0:0:1:8080 --macserver
    $> ./et ::1 -p 8080 --macserver # fails because defaults to port 2022
    ```
    Fixes MisterTea#537
    jshort committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    c0e077d View commit details
    Browse the repository at this point in the history