fix: Parse Server option masterKeyIps does not include localhost by default for IPv6 (#8322)

This commit is contained in:
Daniel
2022-11-26 09:19:14 +11:00
committed by GitHub
parent 6f527440c2
commit ab82635b0d
4 changed files with 10 additions and 5 deletions

View File

@@ -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) {