diff --git a/src/config/locale/en.js b/src/config/locale/en.js index 44ca2fa6..20de657c 100644 --- a/src/config/locale/en.js +++ b/src/config/locale/en.js @@ -27,7 +27,7 @@ export default { NOT_SUPPORT_TRANSACTION: 'table engine is not support transaction', DATA_MUST_BE_ARRAY: 'data is not array list', PARAMS_TYPE_INVALID: 'params `{name}` type invalid', - DISLLOW_PORT: 'proxy on, cannot visit with port', + DISALLOW_PORT: 'proxy on, cannot visit with port', SERVICE_UNAVAILABLE: 'Service Unavailable', validate_required: '{name} need is set', diff --git a/src/core/app.js b/src/core/app.js index a3d20668..d53c54d1 100644 --- a/src/core/app.js +++ b/src/core/app.js @@ -107,7 +107,7 @@ export default class extends think.base { } //deny access by ip + port if (think.config('proxy_on') && http.host !== http.hostname && !http.socket) { - http.error = new Error(think.locale('DISLLOW_PORT')); + http.error = new Error(think.locale('DISALLOW_PORT')); return think.statusAction(403, http); } let instance = domain.create();