From 6e815047433962118be6907a51539c9a7d2f6794 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 18 Oct 2016 15:33:07 -0600 Subject: [PATCH] update domain name --- bin/stunnel.js | 2 +- client.js | 2 +- httpsclient.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/stunnel.js b/bin/stunnel.js index 027dd2a..5e8e5dd 100755 --- a/bin/stunnel.js +++ b/bin/stunnel.js @@ -76,7 +76,7 @@ program .parse(process.argv) ; -program.stunneld = program.stunneld || 'wss://pokemap.hellabit.com:3000'; +program.stunneld = program.stunneld || 'wss://tunnel.daplie.com'; var jwt = require('jsonwebtoken'); var domainsMap = {}; diff --git a/client.js b/client.js index 273951a..01e123e 100644 --- a/client.js +++ b/client.js @@ -9,7 +9,7 @@ var sni = require('sni'); // Assumption: will not get next tcp packet unless previous packet succeeded //var services = { 'ssh': 22, 'http': 80, 'https': 443 }; var services = { 'ssh': 22, 'http': 4080, 'https': 8443 }; -var hostname = 'aj.daplie.me'; // 'pokemap.hellabit.com' +var hostname = 'aj.daplie.me'; // 'test.hellabit.com' function addrToId(address) { return address.family + ',' + address.address + ',' + address.port; diff --git a/httpsclient.js b/httpsclient.js index 930b77e..4a750b9 100644 --- a/httpsclient.js +++ b/httpsclient.js @@ -3,7 +3,7 @@ var request = require('request'); function run(copts) { - var tunnelUrl = 'https://pokemap.hellabit.com/?access_token=' + copts.token; + var tunnelUrl = 'https://tunnel.daplie.com/?access_token=' + copts.token; request.get(tunnelUrl, { rejectUnauthorized: false }, function (err, resp) { console.log('resp.body'); console.log(resp.body);