xtunnel 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -9,9 +9,11 @@ const config = JSON.parse(fs.readFileSync(path.join(__dirname, './config/default
|
|
9
9
|
|
10
10
|
let rayProcess = null
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
process.on('exit', stop())
|
13
|
+
process.on('SIGINT', stop())
|
14
|
+
process.on('SIGUSR1', stop())
|
15
|
+
process.on('SIGUSR2', stop())
|
16
|
+
process.on('uncaughtException', err => stop() && process.exit(1))
|
15
17
|
|
16
18
|
program.version('1.0.0').description('Tunnel CLI')
|
17
19
|
program.command('* <url>').action(url => url && run(url))
|