Roman Shtylman
3026d6a42c
1.2.0
v1.2.0
2014-04-28 19:00:12 -04:00
Roman Shtylman
abd461f83a
Merge pull request #47 from dscape/patch-1
...
return client from 'localtunnel' api call
2014-04-28 18:58:54 -04:00
Nuno Job
2acea3d77f
Return client
...
This allows manipulating the client from outside. Allowing, for example, to close a connection.
2014-04-28 23:32:00 +01:00
Roman Shtylman
5d0eb3382a
add --version CLI flag to get version info
2014-04-22 19:55:19 -04:00
Roman Shtylman
3b67c8a8ce
1.1.2
v1.1.2
2014-04-20 10:51:24 -04:00
Kevin Ingersoll
71552a336e
Increase default Mocha timeout
2014-04-20 10:45:21 -04:00
Roman Shtylman
87a23bf28c
fix status code check for url request
2014-04-19 19:33:52 -04:00
Roman Shtylman
3d54de851f
handle errors from localtunnel server when requesting initial url
2014-04-19 19:30:44 -04:00
Roman Shtylman
92bb807908
fix typo
...
fixes #45
2014-04-18 09:34:48 -04:00
Roman Shtylman
afbdc3697e
1.1.1
v1.1.1
2014-04-15 09:33:34 -04:00
Roman Shtylman
0049f21b55
Merge pull request #38 from LinusU/patch-1
...
re-throw client errors from bin/lt to let node handle it
2014-04-14 19:27:56 -04:00
Roman Shtylman
509841104b
fix for RangeError stack size exceeded
...
This error would happen when there was a problem connecting to the local
server. The local.on('error') handler should have been a 'once' handler
because we emit the error again if it isn't a CONNREFUSED. So in the
case of a CONNRESET, it would trigger an infinite loop since the error
was being emitted back onto the local variable. Instead we just close
the remote socket and let a new one takes its place.
fixes #36
2014-04-14 15:36:42 -04:00
Linus Unnebäck
92caf2f204
lt: better error handling
...
Let node handle the displaying of error and setting exit code.
2014-04-14 21:15:11 +02:00
Roman Shtylman
9487797e02
1.1.0
v1.1.0
2014-02-24 19:51:14 -05:00
Roman Shtylman
a42f6a8d8d
document local-host option
2014-02-24 19:49:40 -05:00
Roman Shtylman
14b4bcb96f
add tests for host header transform
2014-02-24 19:43:34 -05:00
Roman Shtylman
4aa65002eb
use host header transform only when local-host is specified
2014-02-24 19:43:07 -05:00
Fredi Pevcin
08676ba81d
Set Host header accordingly to local-host option
2014-02-24 00:26:38 +01:00
Roman Shtylman
174e7f3982
1.0.0
v1.0.0
2014-02-14 00:37:45 -05:00
Roman Shtylman
44be55cd7b
readme: fix markdown table
...
[ci skip]
2014-02-14 00:36:53 -05:00
Roman Shtylman
5c6cd2359c
add travis badge
...
- remove node 0.8
- add node 0.10
2014-02-14 00:34:40 -05:00
Roman Shtylman
2f6f9459ad
change main export signature to localtunnel(port, opt, fn)
...
Makes for a simpler hello world app
2014-02-14 00:32:43 -05:00
Roman Shtylman
7217a08a05
add history.md to track changes
2014-02-13 23:52:12 -05:00
Roman Shtylman
fbfc923a7e
remove connect export in favor of single function
...
Since connect was the only function exported, we can just export the
function directly to make things simpler.
2014-02-13 23:51:29 -05:00
Roman Shtylman
d9bc11b520
default host to localtuunel.me
...
If no host specified, then default to localtunnel.me
close #31
2014-02-13 23:43:54 -05:00
Roman Shtylman
ad64611bd1
add tests
2014-02-13 23:41:49 -05:00
Roman Shtylman
ac70515143
0.2.2
v0.2.2
2014-01-09 11:07:18 -05:00
Roman Shtylman
8d7ccccf21
remove local.unpipe() on remote close
...
This will happen automatically.
close #28
2014-01-09 11:06:58 -05:00
Roman Shtylman
77091b3d93
0.2.1
v0.2.1
2013-12-31 17:34:04 -05:00
Roman Shtylman
4f4a147b45
don't unpipe on local close
...
Pipe will do this for us
2013-12-31 17:33:49 -05:00
Roman Shtylman
f1d809a84d
0.2.0
v0.2.0
2013-12-31 15:39:16 -05:00
Roman Shtylman
eba003bd26
add a .close method to shutdown the tunnel
2013-12-31 15:38:45 -05:00
Roman Shtylman
3354c4c6e3
rework tunnel logic
...
Refactoring to make things a bit saner and easier to debug.
2013-12-05 11:26:19 -05:00
Roman Shtylman
1c2757e604
Merge pull request #27 from adammck/couldnt-establish-tunnel
...
Add more verbose error for ECONNREFUSED
2013-11-20 09:34:48 -08:00
Adam Mckaig
790e55e881
Add more verbose error for ECONNREFUSED
...
If the tunnel server can be reached (at e.g. http://localtunnel.me/?new )
but the tunnel (to e.g. grpi.localtunnel.me:44827) can't actually be
established, the client currently gets stuck in a loop retrying forever
with no indication as to what's wrong. This doesn't fix the loop, since
it does seem desirable to retry forever, but logs:
[Error: connection refused: localtunnel.me:44827]
2013-11-20 12:29:31 -05:00
Roman Shtylman
a9b0274ff4
0.1.3
v0.1.3
2013-11-14 12:10:02 -05:00
Roman Shtylman
83ecb29eff
Merge pull request #26 from EverythingMe/override_localhost
...
Added the --localhost parameter to tunnel the traffic to other hosts
2013-11-14 09:08:47 -08:00
Omri Bahumi
21df257d16
Added the --local-host parameter to tunnel the traffic to other hosts
2013-11-14 18:06:19 +02:00
Roman Shtylman
18ada0854a
0.1.2
v0.1.2
2013-11-06 23:25:28 -05:00
Roman Shtylman
34afd6537d
more resilient to upstream server failure and restart
2013-11-06 23:25:05 -05:00
Roman Shtylman
2c38aefb9d
add go client to readme
2013-10-23 11:31:28 -04:00
Roman Shtylman
aa488f6e76
0.1.1
v0.1.1
2013-10-22 15:57:36 -04:00
Roman Shtylman
f6618953f9
Merge pull request #20 from eagleeye/master
...
Do not call success callback right after error in request_url
2013-10-16 18:49:48 -07:00
Andrii Shumada
092d050fa0
Do not call success callback right after error in request_url
2013-10-16 12:05:37 +03:00
Roman Shtylman
0334ace20b
0.1.0
v0.1.0
2013-06-17 02:13:17 -04:00
Roman Shtylman
13afcff1ae
fix README api example
2013-06-17 02:12:54 -04:00
Roman Shtylman
ed5aa3f16b
remove server components
...
moved to localtunnel-server repo
2013-06-17 02:11:41 -04:00
Roman Shtylman
2fcac1336c
add debug module to deps
2013-06-16 18:35:55 -04:00
Roman Shtylman
0568ae0bef
close client tcp sockets after each http response
...
While a little less efficient than keeping tcp connections open, this
helps ensure that bad things don't happen on the socket connections when
http protocol issues happen.
2013-06-16 18:24:27 -04:00
Roman Shtylman
585a8afad7
fix undefined variable
...
fixes #8
2013-02-11 14:19:34 -05:00