Skip to content

Commit

Permalink
Resolve env properties in SelectDestination
Browse files Browse the repository at this point in the history
Signed-off-by: Andrés Alcarraz <[email protected]>
  • Loading branch information
alcarraz committed Jul 25, 2024
1 parent 584da0f commit fb70e73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void setConfiguration (Configuration cfg) {
public void setConfiguration(Element xml) throws ConfigurationException {
for (Element ep : xml.getChildren("endpoint")) {
String destination = QFactory.getAttributeValue(ep, "destination");
StringTokenizer st = new StringTokenizer(ep.getText());
StringTokenizer st = new StringTokenizer(Environment.get(ep.getTextTrim()));
while (st.hasMoreElements()) {
BinRange br = new BinRange(destination, st.nextToken());
binranges.add(br);
Expand All @@ -110,7 +110,7 @@ public void setConfiguration(Element xml) throws ConfigurationException {
for (Element re : xml.getChildren("regexp")) {
String destination = QFactory.getAttributeValue(re, "destination");
regexps.add(
new PanRegExp(QFactory.getAttributeValue(re, "destination"), re.getTextTrim())
new PanRegExp(QFactory.getAttributeValue(re, "destination"), Environment.get(re.getTextTrim()))
);
}
LogEvent evt = Log.getLog(Q2.LOGGER_NAME, this.getClass().getName()).createLogEvent("config");
Expand Down

0 comments on commit fb70e73

Please sign in to comment.