Browse files

fix #13

  • Loading branch information...
1 parent 3a50011 commit a54d21e29f518e7941a5ec0b4fa232578ee21956 @hgourvest committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
2 lib/index.js
@@ -1244,7 +1244,7 @@ Connection.prototype.connect = function (filename, callback, error) {
msg.addString(filename || '', DEFAULT_ENCODING);
msg.addInt(1); // Protocol version understood count.
- blr.addString(1, process.env['USER'] || process.env['USERNAME'], DEFAULT_ENCODING);
+ blr.addString(1, process.env['USER'] || process.env['USERNAME'] || "Unknown", DEFAULT_ENCODING);
var hostname = os.hostname();
blr.addString(4, hostname, DEFAULT_ENCODING);
blr.addBytes([6, 0]);

0 comments on commit a54d21e

Please sign in to comment.