소스 검색

feat: remove ValidateURLWithDefaults

creamlike1024 5 달 전
부모
커밋
f635fc3ae6
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      common/ssrf_protection.go

+ 0 - 5
common/ssrf_protection.go

@@ -295,11 +295,6 @@ func (p *SSRFProtection) ValidateURL(urlStr string) error {
 	return nil
 	return nil
 }
 }
 
 
-// ValidateURLWithDefaults 使用默认配置验证URL
-func ValidateURLWithDefaults(urlStr string) error {
-	return DefaultSSRFProtection.ValidateURL(urlStr)
-}
-
 // ValidateURLWithFetchSetting 使用FetchSetting配置验证URL
 // ValidateURLWithFetchSetting 使用FetchSetting配置验证URL
 func ValidateURLWithFetchSetting(urlStr string, enableSSRFProtection, allowPrivateIp bool, domainFilterMode bool, ipFilterMode bool, domainList, ipList, allowedPorts []string) error {
 func ValidateURLWithFetchSetting(urlStr string, enableSSRFProtection, allowPrivateIp bool, domainFilterMode bool, ipFilterMode bool, domainList, ipList, allowedPorts []string) error {
 	// 如果SSRF防护被禁用,直接返回成功
 	// 如果SSRF防护被禁用,直接返回成功