Releases: elliotchance/sshtunnel
Releases · elliotchance/sshtunnel
v1.6.1
v1.6.0
Improve listener and dial failure handling (#18) Add a Listen/Serve pattern, and wrap Start around that, to allow initializing the listener prior to starting the service flag to immediately close connections that fail to dial.
v1.5.0
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.
v1.4.0
Add connection retry with MaxConnectionAttempts (#16) The application using this library hangs (never exits) if the SSH tunnel is being used by a lots of goroutines and an error occurs in the forward() method when a connection is being made. Connection attempts seem to intermittently fail, and this somehow leads to the code never exiting when complete. I found that the connection attempt would succeed after 1 or 2 retries, then the application would later exit like normal. This PR adds a optional retry mechanism. It must be enabled with MaxConnectionAttempts. Fixed #15
v1.3.1
Fix bug with unclosed ssh connection (#13) Often there were unclosed SSH connections, later as it turned out, this was due to the fact that only those connections were added to the closures through which it was possible to establish a TCP connection.
v1.3.0
feat: add ssh-agent authentication method support (#10)
v1.2.0
Define minimal interface for tunnel logger (#9) Prior to this commit sshtunnel required the use of the standard library's log package, even though it only used Printf. This commit changes the struct to use an interface, which allows the consumer to drop in a shim to the logger of their choice.
v1.1.1
Let the listener open more than 1 connection (#6) Fix the issue that was introduced in 1.1.0 where a listener would only accept a single connection. Instead track all the open connections in SSHTunnel.Conns (and SSHTunnel.SvrConns) and close all connections when SSHTunnel.Close() is called. I think this addresses the issue #5
v1.1.0
Added an optional local port definition (#4) This commit simply adds the support for a local port definition when creating a tunnel.
v1.0.1
Upgrade to Go Mods and prevent leaks closing tunnels (#2)