日志小调整。

release-2.0.0.2
王良 2025-03-07 14:32:02 +08:00
parent f6d02950ff
commit a145fd993f
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ export default {
<div v-if="activeTabKey === '4'">
<a-row style="margin-top:10px">
<a-col span="21">
<div>这里配置的域名不会通过代理</div>
<div>配置<code>不代理</code>的域名不会通过代理</div>
</a-col>
<a-col span="3">
<a-button style="margin-left:8px" type="primary" icon="plus" @click="addWhiteList()" />

View File

@ -110,7 +110,7 @@ module.exports = (serverConfig) => {
// 配置了白名单的域名,将跳过代理
const inWhiteList = !!matchUtil.matchHostname(whiteList, hostname, 'in whiteList')
if (inWhiteList) {
log.info(`为白名单域名,不拦截: ${hostname}, headers:`, jsonApi.stringify2(req.headers))
log.info(`为白名单域名,不拦截: ${hostname}`)
return false // 不拦截
}