aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js4
1 files changed, 3 insertions, 1 deletions
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]