diff --git a/lib/relay.js b/lib/relay.js index 95de678..c6b3278 100644 --- a/lib/relay.js +++ b/lib/relay.js @@ -460,7 +460,7 @@ var Server = { try { srv.portsMap[portnumber].close(function () { console.log("[DynTcpConn] closing server for ", portnumber); - delete srv.portMap[portnumber]; + delete srv.portsMap[portnumber]; delete PortServers[portnumber]; }); } catch(e) { /*ignore*/ } diff --git a/package.json b/package.json index 2829f18..f3a665d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telebit-relay", - "version": "0.13.0", + "version": "0.13.1", "description": "Friends don't let friends localhost. Expose your bits with a secure connection even from behind NAT, Firewalls, in a box, with a fox, on a train or in a plane... or a Raspberry Pi in your closet. An attempt to create a better localtunnel.me server, a more open ngrok. Uses Automated HTTPS (Free SSL) via ServerName Indication (SNI). Can also tunnel tls and plain tcp.", "main": "lib/relay.js", "bin": {