Skip to content

Commit 9844602

Browse files
authored
drop global-tunnel-ng dependency
1 parent a3dade3 commit 9844602

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/cli.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@ const Router = require('./router');
1515

1616
const gens = list(process.argv.slice(2));
1717

18-
// Override http networking to go through a proxy ifone is configured
19-
const MAJOR_NODEJS_VERSION = Number.parseInt(process.version.slice(1).split('.')[0], 10);
20-
21-
if (MAJOR_NODEJS_VERSION >= 10) {
22-
// `global-agent` works with Node.js v10 and above.
23-
require('global-agent').bootstrap();
24-
} else {
25-
// `global-tunnel-ng` works only with Node.js v10 and below.
26-
require('global-tunnel-ng').initialize();
27-
}
18+
require('global-agent').bootstrap();
2819

2920
/* eslint new-cap: 0, no-extra-parens: 0 */
3021
const tabtab = new Tabtab.Commands.default({

0 commit comments

Comments
 (0)