From e14e5b813a09827f0d9a4bc966ccc33e4603f45d Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 24 Aug 2011 20:52:53 +0200 Subject: cholerab knut: make host and port configurable usage: [host=HOST] [port=PORT] node knut --- cholerab/knut/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cholerab/knut') 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; -- cgit v1.2.3