Skip to content

Commit

Permalink
Merge pull request #1 from ziccardi/DEVELOPMENT
Browse files Browse the repository at this point in the history
Changed JNRPE to depend on JNRPE-LIB module Added acceptparams configuration
  • Loading branch information
ziccardi authored Aug 21, 2018
2 parents 38d68a0 + c65fbdc commit d6f564c
Show file tree
Hide file tree
Showing 5 changed files with 1,097 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# vscode folders
.vscode/
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"server": {
"address": "127.0.0.1",
"port": 5667,
"plugins": "/path/to/plugins"
"plugins": "/path/to/plugins",
"acceptparams": true
},
"commands": {
}
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const pkg = require('./package.json')
var JNRPEServer = require('jnrpe-lib').JNRPEServer;
const config = require('./config.json');

new JNRPEServer(config).start();
new JNRPEServer(config).start();
console.log(`JNRPE ${pkg.version} listening on port ${config.server.port}`);
Loading

0 comments on commit d6f564c

Please sign in to comment.