9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 18:39:20 +00:00

fix(core): 修复代理主机名获取异常

This commit is contained in:
jhqwqmc
2025-04-29 22:12:31 +08:00
parent 210074c86f
commit 0e0f389dab

View File

@@ -208,7 +208,7 @@ public class S3Host implements ResourcePackHost {
Map<String, Object> proxySetting = MiscUtils.castToMap(arguments.get("proxy"), true);
if (proxySetting != null) {
String host = (String) proxySetting.get("host");
String host = proxySetting.get("host").toString();
if (host == null || host.isEmpty()) {
throw new LocalizedException("warning.config.host.proxy.missing_host");
}