Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
avoid array length mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed May 23, 2017
1 parent c80f3d6 commit 979f7a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/mixins/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (Model, options) {
// internal requests
if (!httpCtx) return true

var adminIps = Model.app.get('adminIps')
var adminIps = Model.app.get('adminIps') || Model.app.get('defaultAdminIps')
if (adminIps) {
return adminIps.some(function (e, i) {
return ipRangeCheck(httpCtx.req.ip, e)
Expand Down
2 changes: 1 addition & 1 deletion server/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"legacyExplorer": false,
"adminIps": [
"defaultAdminIps": [
"127.0.0.1"
],
"smtp": {
Expand Down

0 comments on commit 979f7a8

Please sign in to comment.