diff --git a/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java b/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java index 7a1bd9536a..10f1d237f3 100644 --- a/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java +++ b/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java @@ -5487,12 +5487,24 @@ private static void _loadProxy(ConfigServerImpl configServer, ConfigImpl config, boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING); Struct proxy = ConfigWebUtil.getAsStruct("proxy", root); - // proxy server - boolean enabled = Caster.toBooleanValue(getAttr(proxy, "enabled"), true); - String server = getAttr(proxy, "server"); - String username = getAttr(proxy, "username"); - String password = getAttr(proxy, "password"); - int port = Caster.toIntValue(getAttr(proxy, "port"), -1); + boolean enabled = false; + String server = null, username = null, password = null; + int port = -1; + if (proxy != null && proxy.size() > 0) { + enabled = Caster.toBooleanValue(getAttr(proxy, "enabled"), true); + server = getAttr(proxy, "server"); + username = getAttr(proxy, "username"); + password = getAttr(proxy, "password"); + port = Caster.toIntValue(getAttr(proxy, "port"), -1); + } + if (StringUtil.isEmpty(server, true)) { + server = getAttr(root, "updateProxyHost"); + username = getAttr(root, "updateProxyUsername"); + password = getAttr(root, "updateProxyPassword"); + port = Caster.toIntValue(getAttr(root, "updateProxyPort"), -1); + enabled = !StringUtil.isEmpty(server, true); + + } // includes/excludes Set includes = proxy != null ? ProxyDataImpl.toStringSet(getAttr(proxy, "includes")) : null; diff --git a/loader/build.xml b/loader/build.xml index 1f8c67c697..8218d5169b 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 5a6b8de92b..9254ce9255 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.2.0.210-SNAPSHOT + 6.2.0.211-SNAPSHOT jar Lucee Loader Build