From f635fc3ae6dfb7ad06effaf69309645f7c45650a Mon Sep 17 00:00:00 2001 From: creamlike1024 Date: Wed, 17 Sep 2025 23:29:18 +0800 Subject: [PATCH] feat: remove ValidateURLWithDefaults --- common/ssrf_protection.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/ssrf_protection.go b/common/ssrf_protection.go index 52b839525..e48ca0e08 100644 --- a/common/ssrf_protection.go +++ b/common/ssrf_protection.go @@ -295,11 +295,6 @@ func (p *SSRFProtection) ValidateURL(urlStr string) error { return nil } -// ValidateURLWithDefaults 使用默认配置验证URL -func ValidateURLWithDefaults(urlStr string) error { - return DefaultSSRFProtection.ValidateURL(urlStr) -} - // ValidateURLWithFetchSetting 使用FetchSetting配置验证URL func ValidateURLWithFetchSetting(urlStr string, enableSSRFProtection, allowPrivateIp bool, domainFilterMode bool, ipFilterMode bool, domainList, ipList, allowedPorts []string) error { // 如果SSRF防护被禁用,直接返回成功