From a474a5cbbd7e6e4d58c6cb13cb566637b553862f Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 1 Feb 2017 17:02:00 -0800 Subject: Small adjustments - Listen on IPv6 localhost by default - Make search box bigger - Keep unencrypted content --- lib/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index d89eaa9..cb9ad6d 100644 --- a/lib/app.js +++ b/lib/app.js @@ -17,7 +17,7 @@ function App(sbot, config) { var conf = config.patchfoo || {} this.port = conf.port || 8027 - this.host = conf.host || 'localhost' + this.host = conf.host || '::1' var base = conf.base || '/' this.opts = { @@ -58,6 +58,8 @@ App.prototype.unboxMsg = function (msg, cb) { if (err) { self.error('unbox:', err) return cb(null, msg) + } else if (content === false) { + return cb(null, msg) } var m = {} for (var k in msg) m[k] = msg[k] -- cgit v1.2.3