2
0
mirror of https://git.coolaj86.com/coolaj86/telebit-relay.js.git synced 2025-02-23 17:38:05 +00:00
This commit is contained in:
AJ ONeal 2018-07-07 09:47:53 +00:00
commit f5126ad8ed

View File

@ -1,10 +1,15 @@
'use strict';
var url = require('url');
var PromiseA = require('bluebird');
var sni = require('sni');
var Packer = require('proxy-packer');
var PortServers = {};
var PromiseA;
try {
PromiseA = require('bluebird');
} catch(e) {
PromiseA = global.Promise;
}
function timeoutPromise(duration) {
return new PromiseA(function (resolve) {