移除基础配置额外访问主机表单
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-06 15:59:56 +08:00
1 parent 82f7b630e4
commit b1ab163a75
3 files changed
+7 -5

No files matched your search

+2 -2
View File
@@ -627,10 +627,10 @@ test('SQLite 不显示或发送密码,网络数据库和中继密码留空保
assert.equal(request.secretChanges['relay.password'].value.plaintext, ' smtp-test-only ')
})
test('基础配置保存完整保留隐藏的数据库和代理信任配置', async () => {
test('基础配置保存完整保留隐藏的额外访问主机、数据库和代理信任配置', async () => {
const config = {
database: { type: 'sqlite', localRef: 'preserved.db' },
domains: { primary: 'example.com', web: 'mail.example.com', accepted: ['example.com'] },
domains: { primary: 'example.com', web: 'mail.example.com', accepted: ['example.com'], accessHosts: ['alternate.example.com', '192.0.2.10'] },
http: { tlsMode: 'proxy', port: 8080, httpsEnabled: false, trustedProxyCidrs: ['127.0.0.1/32', '192.0.2.10/32'] },
security: { externalEmailEnabled: false, webAuthnEnabled: false }
}