mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-21 09:25:53 +00:00
default host to localtuunel.me
If no host specified, then default to localtunnel.me close #31
This commit is contained in:
@@ -116,7 +116,9 @@ var Tunnel = function(opt) {
|
|||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
self._closed = false;
|
self._closed = false;
|
||||||
self._opt = opt;
|
self._opt = opt || {};
|
||||||
|
|
||||||
|
self._opt.host = self._opt.host || 'https://localtunnel.me';
|
||||||
};
|
};
|
||||||
|
|
||||||
Tunnel.prototype.__proto__ = EventEmitter.prototype;
|
Tunnel.prototype.__proto__ = EventEmitter.prototype;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ test('setup local http server', function(done) {
|
|||||||
|
|
||||||
test('setup localtunnel client', function(done) {
|
test('setup localtunnel client', function(done) {
|
||||||
var client = localtunnel.connect({
|
var client = localtunnel.connect({
|
||||||
host: 'https://localtunnel.me',
|
|
||||||
port: test._fake_port
|
port: test._fake_port
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -69,7 +68,6 @@ test('query localtunnel server w/ ident', function(done) {
|
|||||||
|
|
||||||
test('request specific domain', function(done) {
|
test('request specific domain', function(done) {
|
||||||
var client = localtunnel.connect({
|
var client = localtunnel.connect({
|
||||||
host: 'https://localtunnel.me',
|
|
||||||
port: test._fake_port,
|
port: test._fake_port,
|
||||||
subdomain: 'abcd'
|
subdomain: 'abcd'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user