default host to localtuunel.me

If no host specified, then default to localtunnel.me

close #31
This commit is contained in:
Roman Shtylman
2014-02-13 23:43:54 -05:00
parent ad64611bd1
commit d9bc11b520
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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'
});