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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user