From a14a8d13731e2d41bb6a8f2f7211e054ff722c7b Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 17 Jul 2013 20:24:40 +0100 Subject: [PATCH] Identd server tweaks --- server/identd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/identd.js b/server/identd.js index 1fc871b..5c588e2 100644 --- a/server/identd.js +++ b/server/identd.js @@ -80,15 +80,15 @@ var IdentdServer = module.exports = function(opts) { return; if (typeof opts.user_id === 'function') { - user = opts.user_id(port_here, port_there).toString() || default_user_id; + user = (opts.user_id(port_here, port_there) || '').toString() || default_user_id; } else { user = opts.user_id.toString(); } if (typeof opts.system_id === 'function') { - system = opts.system_id(port_here, port_there).toString(); + system = (opts.system_id(port_here, port_there) || '').toString() || default_system_id; } else { - system = opts.system_id.toString() || default_system_id + system = opts.system_id.toString(); } return port_here.toString() + ' , ' + port_there.toString() + ' : USERID : ' + system + ' : ' + user; -- 2.25.1