Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Daniel93b354ece82a
diff --git a/kernel/api/network.go b/kernel/api/network.go
index a57937c5f6..f52c9c67eb 100644
--- a/kernel/api/network.go
+++ b/kernel/api/network.go
@@ -344,7 +344,7 @@ func getSafeClient(timeout time.Duration) *req.Client {
}
ip := net.ParseIP(host)
if ip != nil && isPrivateIP(ip) {
- return fmt.Errorf("ip address %s is prohibited", host)
+ return fmt.Errorf("ip address [%s] is prohibited", host)
}
return nil
},