mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-15 22:45:54 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ae493ae44 | ||
|
|
f487effe3a | ||
|
|
333af2b08f | ||
|
|
b32041d8aa | ||
|
|
649de1b840 | ||
|
|
f791217756 | ||
|
|
cce9d1490a |
@@ -1,3 +1,4 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
|
sudo: false
|
||||||
node_js:
|
node_js:
|
||||||
- "0.10"
|
- "4"
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 1.8.1 (2016-01-20)
|
||||||
|
|
||||||
|
* fix bug w/ HostHeaderTransformer and binary data
|
||||||
|
|
||||||
# 1.8.0 (2015-11-04)
|
# 1.8.0 (2015-11-04)
|
||||||
|
|
||||||
* pass socket errors up to top level
|
* pass socket errors up to top level
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
# localtunnel [](https://travis-ci.org/defunctzombie/localtunnel) #
|
# localtunnel
|
||||||
|
|
||||||
|
[](https://travis-ci.org/localtunnel/localtunnel)
|
||||||
|
|
||||||
localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.
|
localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.
|
||||||
|
|
||||||
@@ -69,7 +71,7 @@ The `tunnel` instance returned to your callback emits the following events
|
|||||||
|error|err|fires when an error happens on the tunnel|
|
|error|err|fires when an error happens on the tunnel|
|
||||||
|close||fires when the tunnel has closed|
|
|close||fires when the tunnel has closed|
|
||||||
|
|
||||||
The `tunnel instance has the following methods
|
The `tunnel` instance has the following methods
|
||||||
|
|
||||||
|method|args|description|
|
|method|args|description|
|
||||||
|----|----|----|
|
|----|----|----|
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ util.inherits(HeaderHostTransformer, Transform);
|
|||||||
|
|
||||||
HeaderHostTransformer.prototype._transform = function (chunk, enc, cb) {
|
HeaderHostTransformer.prototype._transform = function (chunk, enc, cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
chunk = chunk.toString();
|
|
||||||
|
|
||||||
// after replacing the first instance of the Host header
|
// after replacing the first instance of the Host header
|
||||||
// we just become a regular passthrough
|
// we just become a regular passthrough
|
||||||
if (!self.replaced) {
|
if (!self.replaced) {
|
||||||
|
chunk = chunk.toString();
|
||||||
self.push(chunk.replace(/(\r\nHost: )\S+/, function(match, $1) {
|
self.push(chunk.replace(/(\r\nHost: )\S+/, function(match, $1) {
|
||||||
self.replaced = true;
|
self.replaced = true;
|
||||||
return $1 + self.host;
|
return $1 + self.host;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"author": "Roman Shtylman <shtylman@gmail.com>",
|
"author": "Roman Shtylman <shtylman@gmail.com>",
|
||||||
"name": "localtunnel",
|
"name": "localtunnel",
|
||||||
"description": "expose localhost to the world",
|
"description": "expose localhost to the world",
|
||||||
"version": "1.8.0",
|
"version": "1.8.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user