mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-13 13:35:54 +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;
|
||||
self._closed = false;
|
||||
self._opt = opt;
|
||||
self._opt = opt || {};
|
||||
|
||||
self._opt.host = self._opt.host || 'https://localtunnel.me';
|
||||
};
|
||||
|
||||
Tunnel.prototype.__proto__ = EventEmitter.prototype;
|
||||
|
||||
@@ -22,7 +22,6 @@ test('setup local http server', function(done) {
|
||||
|
||||
test('setup localtunnel client', function(done) {
|
||||
var client = localtunnel.connect({
|
||||
host: 'https://localtunnel.me',
|
||||
port: test._fake_port
|
||||
});
|
||||
|
||||
@@ -69,7 +68,6 @@ test('query localtunnel server w/ ident', function(done) {
|
||||
|
||||
test('request specific domain', function(done) {
|
||||
var client = localtunnel.connect({
|
||||
host: 'https://localtunnel.me',
|
||||
port: test._fake_port,
|
||||
subdomain: 'abcd'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user