Commit Graph
57 Commits
Author SHA1 Message Date
Roman Shtylman cf070d4ce9 add /api/tunnels/:id/status endpoint
Provides connected_sockets information for a tunnel.
2018-05-16 16:41:05 -04:00
Roman Shtylman 317db73bdc use pump to pipe sockets
Ensures that destination socket close or destroy also does the same for
the source socket.
2018-05-16 10:21:56 -04:00
Roman Shtylman c27100b98e refactor to use http agent interface for tunnels 2018-05-15 14:49:19 -04:00
Roman Shtylman 86dce49dd1 add --domain option to enable localtunnel servers on subdomains 2018-04-01 19:57:48 -07:00
Roman Shtylman 6b07a86ec1 switch babel-register to esm 2018-04-01 18:24:49 -07:00
Ajay Gandhi b1c296a409 Generate human readable IDs for client URLs (#77)
Based on @FranzSkuffka's suggested enhancement in PR 207 on
localtunnel/localtunnel
(https://github.com/localtunnel/localtunnel/pull/207), this PR uses the
"human-readable-ids" package to generate IDs of the form
"adjective-noun-number". These IDs are easier to remember and arguably
more useful in testing since they can be retyped without copying and
pasting.

Some sample IDs generated by this package are:

* heavy-puma-90
* grump-walrus-64
* purple-starfish-58
* nasty-seahorse-9
2018-04-01 18:00:21 -07:00
Roman Shtylman 5fb9dbaaa1 extract ClientManager from server.js
Make client manager more robust when piping connections.
2017-12-11 21:16:55 -08:00
Roman Shtylman b4a36c78b0 replace express with koa 2017-12-10 11:34:29 -08:00
Roman Shtylman ab9b47d2b3 remove http-proxy dependency 2017-12-10 10:27:03 -08:00
Roman Shtylman 3e12b7ef31 upgrade debug to 3.1.0 2017-12-10 10:24:24 -08:00
Roman Shtylman 908ab316c3 update bluebird to 3.5.1 2017-12-10 10:22:05 -08:00
Roman Shtylman 61708ec698 update book to 1.3.3 2017-12-10 10:22:00 -08:00
Roman Shtylman 54f0eae039 upgrade babel register and babel plugin transform commonjs 2017-12-10 10:17:14 -08:00
Roman Shtylman 308c2d4b85 remove babel polyfill 2017-12-10 10:15:28 -08:00
Roman Shtylman 6318db6075 remove babel async to generator transform 2017-12-10 10:14:59 -08:00
Roman Shtylman db5b632a9f add dev script to package.json 2017-12-10 09:56:58 -08:00
Roman Shtylman a2a58f4c6f refactor with async/await
Trying to be more robust about error handling and failure.
2016-07-09 17:06:13 -07:00
Roman Shtylman f8fa049966 remove bouncy
rework request proxy to use native http request and direct socket pipe.
Cuts out bouncy which is no longer maintained and simplifies the code
path.
2015-11-04 20:01:01 -08:00
Roman Shtylman 4f0f78d1ee package.json: move ws to dev deps 2015-11-04 08:36:35 -08:00
Roman Shtylman fd6498d14d update localtunnel dev-dep 2015-11-04 08:36:14 -08:00
Luke Horvat 6dcb2d3df0 Define license in package.json 2015-10-08 12:04:13 +11:00
Roman Shtylman 41b7e3f63d proxy to github pages site for landing page
- removes all the website specific cruft from the repo
- allows for rolling out website changes separately from server changes
2015-08-02 11:06:46 -07:00
Roman Shtylman f7d0effa90 0.0.8 2015-01-10 21:27:46 -08:00
Roman Shtylman 779ed39b4f 0.0.7 2015-01-10 21:04:35 -08:00
Roman Shtylman 7f6640a9d6 0.0.6 2015-01-10 21:00:46 -08:00
Roman Shtylman 386910032e fix websocket support 2015-01-10 20:58:11 -08:00
Roman Shtylman 8af4fe19b8 update on-finished 2015-01-10 20:58:11 -08:00
Roman Shtylman c0365c9553 0.0.5 2014-12-11 09:40:46 -08:00
Roman Shtylman 4dd37bda60 update dependencies 2014-12-11 09:32:00 -08:00
Roman Shtylman 73ec1865ab remove engine.io
No need for homepage to show this stuff for now. Just more things that
can crash the tunnel server!
2014-10-25 17:09:13 -07:00
Roman Shtylman 07bad31e72 add dotenv 2014-10-11 20:13:13 -07:00
Roman Shtylman 6b6bbfba61 update bouncy to 3.2.2 2014-10-09 10:56:54 -07:00
Roman Shtylman d2df5ec4c3 update enchilada to 0.11.0 2014-10-09 10:55:30 -07:00
Roman Shtylman 1b1d75b750 detect when http client request is finished and close connection
If the request is finished before we need to respond, we set a flag and
close the connection.

We also close the connection when the request finishes anyway because we
really like a new connection for each request. Things play nicer with
bouncy that way.
2014-04-22 20:34:13 -04:00
Roman Shtylman 8cc22d501c fix bad matching against subdomains
Match for valid subdomains versus anything that comes before a period.

fixes #7
2014-04-20 12:58:59 -04:00
Roman Shtylman 8abb4f395f add test for invalid subdomain requests 2014-04-20 11:05:57 -04:00
Roman Shtylman bee0115b26 update tests to latest localtunnel client 2014-04-16 19:11:12 -04:00
Roman Shtylman 74ce55f5ef update deps 2013-12-21 10:39:52 -05:00
Roman Shtylman b6abd16383 update landing page
- restyle
- add sponsors
2013-11-22 17:57:26 -05:00
Roman Shtylman 91b708c134 update deps 2013-11-21 21:07:53 -05:00
Roman Shtylman 5e777a1eca update deps to latest versions 2013-11-10 00:23:07 -05:00
Roman Shtylman 2bbf98c24c add superstack for better stacktraces 2013-11-10 00:13:42 -05:00
Roman Shtylman 6afb75704a use bouncy to proxy requests
- simplifies our codebase a lot!
- queued requests are currently broken
2013-11-03 16:56:41 -05:00
Roman Shtylman e7e112963c update localtunnel dev dep 2013-10-16 10:34:48 -04:00
Roman Shtylman d15e568cea refactor server
* shows some basic statistics on main page
* move tcp proxy setup into separate file
* migrate github page theme to be hosted locally
2013-06-18 23:00:45 -04:00
Roman Shtylman e6971e9afe use bookrc for logging 2013-06-16 18:50:04 -04:00
Roman Shtylman a6ec239a27 remove client components
* devDep localtunnel module for client
* update readme for server info
2013-06-16 18:46:29 -04:00
Roman Shtylman 5340659954 0.0.4 2012-12-17 14:32:31 -05:00
Roman Shtylman 79ca069c38 refactor to use http-raw for lt server incoming
- http raw exposes a socket to the req/res pair
- cleanup client to be more resilient
- add test for queued requests
2012-12-17 14:23:12 -05:00
Roman Shtylman b5830c3840 0.0.3 2012-11-06 10:55:24 -05:00