use factory

This commit is contained in:
Karsten Hassel
2021-07-05 19:45:58 +02:00
parent 179989aa42
commit bbb3accf0c
38 changed files with 152 additions and 152 deletions

View File

@@ -3,12 +3,11 @@
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
* MIT Licensed.
*/
let config = {
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.10.1"]
};
const configFactory = require('./default.js')
config = Object.assign(require("./default.js"), config);
delete config.modules;
const config = configFacory({
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.10.1"]
});
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {