Skip to content

Commit c65fbdc

Browse files
committed
Changed JNRPE to depend on JNRPE-LIB module
Added acceptparams configuration
1 parent 38d68a0 commit c65fbdc

File tree

5 files changed

+1097
-10
lines changed

5 files changed

+1097
-10
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
63+
# vscode folders
64+
.vscode/

config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"server": {
33
"address": "127.0.0.1",
44
"port": 5667,
5-
"plugins": "/path/to/plugins"
5+
"plugins": "/path/to/plugins",
6+
"acceptparams": true
67
},
78
"commands": {
89
}

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
const pkg = require('./package.json')
12
var JNRPEServer = require('jnrpe-lib').JNRPEServer;
23
const config = require('./config.json');
34

4-
new JNRPEServer(config).start();
5+
new JNRPEServer(config).start();
6+
console.log(`JNRPE ${pkg.version} listening on port ${config.server.port}`);

0 commit comments

Comments
 (0)