feat(*): 生图与视频工作台 - 新增独立生成流程并整合平台配置

This commit is contained in:
ddcat666 committed 2026-10-13 09:04:34 +08:00
1 parent 4c1d2b4012
commit 1f3f2c6020
69 files changed
+7108 -87

No files matched your search

+7 -7
View File
@@ -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
}