xtunnel 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -9,7 +9,7 @@ const config = JSON.parse(fs.readFileSync(path.join(__dirname, './config/default
|
|
9
9
|
|
10
10
|
let rayProcess = null
|
11
11
|
|
12
|
-
[`exit`, `SIGINT`, `SIGUSR1`, `SIGUSR2`, `uncaughtException
|
12
|
+
[`exit`, `SIGINT`, `SIGUSR1`, `SIGUSR2`, `uncaughtException`].forEach((eventType) => {
|
13
13
|
process.on(eventType, stop.bind(null, eventType))
|
14
14
|
})
|
15
15
|
|