fix(release): 正式版本 - 修复 SSRF 与 Quality checks,发布 v1.6.6.1
This commit is contained in:
1 parent
ede6cc1e70
commit
ea6676f449
21 files changed
+1303
-338
No files matched your search
@@ -455,13 +455,13 @@ func resolveOutboundHostWithPolicy(ctx context.Context, host string, allowPrivat
|
||||
failure.Reason = kernel.ReasonUpstreamDNSFailed
|
||||
return nil, failure
|
||||
}
|
||||
// if !allowPrivateHost {
|
||||
// for _, ip := range addresses {
|
||||
// if blockedOutboundIP(ip) {
|
||||
// return nil, BadAuthRequest("不允许访问本机、内网或链路本地地址")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if !allowPrivateHost {
|
||||
for _, ip := range addresses {
|
||||
if blockedOutboundIP(ip) {
|
||||
return nil, BadAuthRequest("不允许访问本机、内网或链路本地地址")
|
||||
}
|
||||
}
|
||||
}
|
||||
return addresses, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user