Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

refactor(security_test): standardize struct field formatting in SSRF whitelist tests

wizardchenc2d60933c8cc
diff --git a/internal/utils/security_test.go b/internal/utils/security_test.go
index a21b70a47..f7dd42680 100644
--- a/internal/utils/security_test.go
+++ b/internal/utils/security_test.go
@@ -218,11 +218,11 @@ func TestValidateURLForSSRF_IPv6Whitelist(t *testing.T) {
// operator overrides SSRF_WHITELIST in their .env.
func TestSSRFWhitelistExtraMerge(t *testing.T) {
cases := []struct {
- name string
- main string
- extra string
- host string
- want bool
+ name string
+ main string
+ extra string
+ host string
+ want bool
}{
{name: "extra only", main: "", extra: "searxng", host: "searxng", want: true},
{name: "main only does not match extra host", main: "internal", extra: "", host: "searxng", want: false},