diff options
author | tv <tv@xso> | 2011-08-24 20:52:53 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-24 20:52:53 +0200 |
commit | 51af2699a3005346a453782393fa7ddbd7c13282 (patch) | |
tree | 24e37ced810ec27b8ad13fcbb3fb399ffcb23c27 /cholerab/knut | |
parent | 7f826f0ec468b9aa75a56483c42381025f38a0fb (diff) |
cholerab knut: make host and port configurable
usage: [host=HOST] [port=PORT] node knut
Diffstat (limited to 'cholerab/knut')
-rwxr-xr-x | cholerab/knut/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cholerab/knut/index.js b/cholerab/knut/index.js index e7278678..0ec6abae 100755 --- a/cholerab/knut/index.js +++ b/cholerab/knut/index.js @@ -1,7 +1,7 @@ #! /usr/bin/env node -var host = '0.0.0.0'; -var port = 42101; +var host = process.env.host || '0.0.0.0'; +var port = Number(process.env.port) || 42101; var pipe = '/tmp/krebscode.painload.cholerab.ttycnser.' + process.env.LOGNAME; |