mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-13 13:35:54 +00:00
Keep sockets alive after connecting
This commit is contained in:
@@ -38,6 +38,8 @@ TunnelCluster.prototype.open = function() {
|
||||
port: remote_port
|
||||
});
|
||||
|
||||
remote.setKeepAlive(true);
|
||||
|
||||
remote.on('error', function(err) {
|
||||
// emit connection refused errors immediately, because they
|
||||
// indicate that the tunnel can't be established.
|
||||
|
||||
Reference in New Issue
Block a user