pull/88/head
xiaojunnuo 2021-08-12 15:51:56 +08:00
parent 13d34a025b
commit d181f19458
2 changed files with 7 additions and 3 deletions

View File

@ -212,7 +212,7 @@ module.exports = {
},
speedTest: {
enabled: true,
interval: 60000,
interval: 160000,
hostnameList: ['github.com'],
dnsProviders: ['usa', 'quad9', 'rubyfish']
}

View File

@ -13,10 +13,14 @@ module.exports = (config) => {
const serverConfig = config
const setting = serverConfig.setting
if (!setting.script.dirAbsolutePath) {
setting.script.dirAbsolutePath = path.join(setting.rootDir, setting.script.defaultDir)
}
const overwallConfig = serverConfig.plugin.overwall
if (!overwallConfig.pac.pacFileAbsolutePath) {
overwallConfig.pac.pacFileAbsolutePath = path.join(setting.rootDir, overwallConfig.pac.pacFilePath)
}
const overwallMiddleware = createOverwallMiddleware(overwallConfig)
const middlewares = []
if (overwallMiddleware) {