Skip to content

Display IPv6 addresses using condensed notation #850

@darkain

Description

@darkain

Right now IPv6 addressed are displayed using their long-form notation, which takes up needless additional space on smaller console windows.

Example:

root@router-1:~ # zerotier-cli listpeers
...
200 listpeers e4da7455b2 2001:41d0:0001:4982:0000:0000:0000:0001/52203;7653;7653 3809 1.2.5 LEAF

That address should be condensed down to 2001:41d0:1:4982::1 - a 20 character reduction, making it fit on a 80 character width terminal.

Also, yes, I'm aware that not all addresses can be condensed, but this is common enough that it helps readability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions