Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f9a6e7f0
authored
Sep 17, 2025
by
creamlike1024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove ValidateURLWithDefaults
parent
b46bffde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
common/ssrf_protection.go
+0
-5
No files found.
common/ssrf_protection.go
View file @
f9a6e7f0
...
...
@@ -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防护被禁用,直接返回成功
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment