Skip to content

Commit

Permalink
Merge pull request #212 from spyrkob/JBEAP-25964
Browse files Browse the repository at this point in the history
[JBEAP-25964] Enable authenticated proxy on demand
  • Loading branch information
jmesnil authored Oct 27, 2023
2 parents 83c476d + bd81f22 commit 7c69593
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/wildfly/channel/ChannelMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public class ChannelMapper {
private static final Map<String, JsonSchema> SCHEMAS = new HashMap<>();

static {
HttpProxy.setup();
if (Boolean.getBoolean("org.wildfly.channel.enable-proxy")) {
HttpProxy.setup();
}
SCHEMAS.put(SCHEMA_VERSION_1_0_0, SCHEMA_FACTORY.getSchema(ChannelMapper.class.getClassLoader().getResourceAsStream(SCHEMA_1_0_0_FILE)));
SCHEMAS.put(SCHEMA_VERSION_2_0_0, SCHEMA_FACTORY.getSchema(ChannelMapper.class.getClassLoader().getResourceAsStream(SCHEMA_2_0_0_FILE)));
}
Expand Down

0 comments on commit 7c69593

Please sign in to comment.