Skip to content

Releases: elliotchance/sshtunnel

v1.6.1

16 Oct 14:59
d87a21f
Compare
Choose a tag to compare
Handle remote failure (#19)

Similar to changes in #18 - closes open connections immediately on remote dial failure.

v1.6.0

02 Sep 14:49
93cd1e6
Compare
Choose a tag to compare
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

20 Jun 15:19
3d56ada
Compare
Choose a tag to compare
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

14 Feb 20:36
27700fc
Compare
Choose a tag to compare
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

10 Sep 14:13
6539d4e
Compare
Choose a tag to compare
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

16 Feb 19:52
af50be1
Compare
Choose a tag to compare
feat: add ssh-agent authentication method support (#10)

v1.2.0

30 Sep 15:07
76be6fd
Compare
Choose a tag to compare
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

25 Jul 13:32
8447f1e
Compare
Choose a tag to compare
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

15 Jan 23:07
Compare
Choose a tag to compare
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

24 Nov 22:07
Compare
Choose a tag to compare
Upgrade to Go Mods and prevent leaks closing tunnels (#2)