mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: remove empty 'lan-allowed-ips' to avoid LAN access anomalies
This commit is contained in:
@@ -144,6 +144,10 @@ export async function generateProfile(): Promise<string | undefined> {
|
||||
if (['info', 'debug'].includes(profile['log-level']) === false) {
|
||||
profile['log-level'] = 'info'
|
||||
}
|
||||
// 删除空的局域网允许列表,避免局域网访问异常
|
||||
if (!profile['lan-allowed-ips']?.length) {
|
||||
delete profile['lan-allowed-ips']
|
||||
}
|
||||
runtimeConfig = profile
|
||||
runtimeConfigStr = stringify(profile)
|
||||
if (diffWorkDir) {
|
||||
|
||||
Reference in New Issue
Block a user