sshping
sshping copied to clipboard
fix missing brackets during IPv6 address parsing
It seems if the host argument in ssh_options_set(session, SSH_OPTIONS_HOST, host) is an IPv6 address,
this address should be enclosed with the brackets.
I only tested this PR with an IPv6 address. I have NOT verified the assumption above in the libssh documentation.