fix: Parse Server option masterKeyIps does not include localhost by default for IPv6 (#8322)
This commit is contained in:
@@ -508,6 +508,11 @@ describe('server', () => {
|
||||
}).then(done);
|
||||
});
|
||||
|
||||
it('should set default masterKeyIps for IPv4 and IPv6 localhost', () => {
|
||||
const definitions = require('../lib/Options/Definitions.js');
|
||||
expect(definitions.ParseServerOptions.masterKeyIps.default).toEqual(['127.0.0.1', '::1']);
|
||||
});
|
||||
|
||||
it('should load a middleware', done => {
|
||||
const obj = {
|
||||
middleware: function (req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user