Skip to content

v1.5.0

Compare
Choose a tag to compare
@elliotchance elliotchance released this 20 Jun 15:19
· 2 commits to master since this release
3d56ada
Fix bug for parsing IPv6 addresses (#17)

IPv6 addresses contain colons ':' and since sshtunnel uses strings.Split(addr, ":"), to spit host and port, it ends up resulting in faulty splits. Using net.SplitHostPort fixes this since it handles IPv6 addresses correctly. If the user did not supply a port, then endpoint.Host is left as is.

This includes a partially breaking change where NewEdnpoint and NewSSHTunnel will now return an error. If you are not using IPv6 it is safe to ignore this error.