Skip to content

Commit

Permalink
Merge branch '6.1' into 6.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	loader/build.xml
#	loader/pom.xml
  • Loading branch information
michaeloffner committed Dec 13, 2024
2 parents d1d06c3 + 5a23a0b commit 5a1d61c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
24 changes: 18 additions & 6 deletions core/src/main/java/lucee/runtime/config/ConfigWebFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> includes = proxy != null ? ProxyDataImpl.toStringSet(getAttr(proxy, "includes")) : null;
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.210-SNAPSHOT"/>
<property name="version" value="6.2.0.211-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.210-SNAPSHOT</version>
<version>6.2.0.211-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit 5a1d61c

Please sign in to comment.