Skip to content
Snippets Groups Projects
Commit 80a21f7a authored by Andrey Chernih's avatar Andrey Chernih Committed by Junegunn Choi
Browse files

[completion] Fix known_hosts completion for custom port number (#1092)

Handles records like "[20.20.7.168]:9722 ssh-rsa ..."

This is a standard format for servers running on custom port according to http://man.openbsd.org/sshd.8#SSH_KNOWN_HOSTS_FILE_FORMAT

    A hostname or address may optionally be enclosed within ‘[’ and ‘]’
    brackets then followed by ‘:’ and a non-standard port number.
parent 0b33dc6c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment