mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-27 07:20:26 +01:00
use the raw address in the error message
This commit is contained in:
1 parent
cc535cde3b
commit
1204362e9c
1 file changed
+1
-1
@@ -440,7 +440,7 @@ func safeHTTPClient() (*http.Client, error) {
|
||||
ip.IsLinkLocalUnicast() ||
|
||||
ip.IsLinkLocalMulticast() ||
|
||||
ip.IsMulticast() {
|
||||
return fmt.Errorf("address %q is invalid or not allowed", ip.String())
|
||||
return fmt.Errorf("address %q is invalid or resolve to disallowed IP", address)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user