aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 71426c3..46b78e7 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -107,7 +107,7 @@ Serve.prototype.go = function () {
if (allowAddresses) {
var ip = this.req.socket.remoteAddress
if (allowAddresses.indexOf(ip) === -1) {
- this.res.writeHead(401)
+ this.res.writeHead(403)
return this.res.end('Not authorized')
}
}