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 | e14e5b813a09827f0d9a4bc966ccc33e4603f45d (patch) | |
tree | 508fc73638400cde327801670a5e095597cd375d /cholerab/knut | |
parent | a590f8b422fe369f51ace4a8992d2cf2236b8858 (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; |