summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'cholerab/knut/index.js')
-rwxr-xr-xcholerab/knut/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cholerab/knut/index.js b/cholerab/knut/index.js
index e7278678..9c536006 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 || '127.0.0.1';
+var port = Number(process.env.port) || 42101;
var pipe = '/tmp/krebscode.painload.cholerab.ttycnser.' + process.env.LOGNAME;