mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-12 23:50:31 +08:00
fix: remove empty 'lan-allowed-ips' to avoid LAN access anomalies
This commit is contained in:
parent
1b96e07b65
commit
48e3f5120e
@ -144,6 +144,10 @@ export async function generateProfile(): Promise<string | undefined> {
|
|||||||
if (['info', 'debug'].includes(profile['log-level']) === false) {
|
if (['info', 'debug'].includes(profile['log-level']) === false) {
|
||||||
profile['log-level'] = 'info'
|
profile['log-level'] = 'info'
|
||||||
}
|
}
|
||||||
|
// 删除空的局域网允许列表,避免局域网访问异常
|
||||||
|
if (!profile['lan-allowed-ips']?.length) {
|
||||||
|
delete profile['lan-allowed-ips']
|
||||||
|
}
|
||||||
runtimeConfig = profile
|
runtimeConfig = profile
|
||||||
runtimeConfigStr = stringify(profile)
|
runtimeConfigStr = stringify(profile)
|
||||||
if (diffWorkDir) {
|
if (diffWorkDir) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user