Merge upstream monitoring features preserving domain extensions and require fixed Go toolchain

This commit is contained in:
Codex committed 2026-10-22 23:50:03 +08:00
commit 71dd21269b
92 files changed
+8557 -874

No files matched your search

+3
View File
@@ -24,6 +24,7 @@ func TestReadConfig(t *testing.T) {
{"user_template", c.UserTemplate, c.UserTemplate == "user-dist"},
{"admin_template", c.AdminTemplate, c.AdminTemplate == "admin-dist"},
{"agent_secret_key", c.AgentSecretKey, c.AgentSecretKey != ""},
{"allow_jwt_ip_change", c.AllowJWTIPChange, !c.AllowJWTIPChange},
}
for _, field := range testFields {
@@ -37,6 +38,7 @@ func TestReadConfig(t *testing.T) {
t.Run("ReadFile", func(t *testing.T) {
const testCfg = `
allow_jwt_ip_change: true
jwt_secret_key: test
user_template: um
admin_template: am
@@ -85,6 +87,7 @@ admin_email: admin@loohui.com
{"smtp_user", c.SMTPUser, c.SMTPUser == "test@loohui.com"},
{"smtp_password", c.SMTPPassword, c.SMTPPassword == "password123"},
{"admin_email", c.AdminEmail, c.AdminEmail == "admin@loohui.com"},
{"allow_jwt_ip_change", c.AllowJWTIPChange, c.AllowJWTIPChange},
}
for _, field := range testFields {