Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Cover blocked AI fetch hosts

rcourtman098a722e032a
diff --git a/internal/ai/service_tools_test.go b/internal/ai/service_tools_test.go
index 193ffa0c48..491a26dae6 100644
--- a/internal/ai/service_tools_test.go
+++ b/internal/ai/service_tools_test.go
@@ -64,7 +64,9 @@ func TestParseAndValidateFetchURL(t *testing.T) {
{" http://example.com ", false, ""},
{"", true, "url is required"},
{"http://localhost", true, "blocked"},
+ {"http://localhost.", true, "blocked"},
{"http://127.0.0.1", true, "blocked"},
+ {"http://[::1]", true, "blocked"},
{"ftp://example.com", true, "only http/https"},
{"http://user:[email protected]", true, "credentials"},
{"http://example.com/#frag", true, "fragments"},