mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: link (#3987)
This commit is contained in:
@@ -30,10 +30,10 @@ export const isInternalAddress = (url: string): boolean => {
|
||||
return true;
|
||||
}
|
||||
|
||||
// For non-metadata URLs, check if it's a domain name
|
||||
// For IP addresses, check if they are internal
|
||||
const ipv4Pattern = /^(\d{1,3}\.){3}\d{1,3}$/;
|
||||
if (!ipv4Pattern.test(hostname)) {
|
||||
return true;
|
||||
return false; // Not an IP address, so it's a domain name - consider it external by default
|
||||
}
|
||||
|
||||
// ... existing IP validation code ...
|
||||
|
Reference in New Issue
Block a user