feat(*): 生图与视频工作台 - 新增独立生成流程并整合平台配置
This commit is contained in:
1 parent
4c1d2b4012
commit
1f3f2c6020
69 files changed
+7108
-87
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