Skip to content

Commit

Permalink
don't assume 127 IP
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored and lucasponce committed Jul 7, 2017
1 parent b68a502 commit 8c8b872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/src/main/resources/hawkular.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set_java_opts() {
JAVA_OPTS="$JAVA_OPTS -Dhawkular.configuration=${HWK_CONFIG}"
JAVA_OPTS="$JAVA_OPTS -Dhawkular.bind-address=$(hwk_prop 'hawkular-alerts.bind-address')"
JAVA_OPTS="$JAVA_OPTS -Dhawkular.port=$(hwk_prop 'hawkular-alerts.port')"
JAVA_OPTS="$JAVA_OPTS -Dhawkular.cors-url=http://127.0.0.1:8003"
JAVA_OPTS="$JAVA_OPTS -Dhawkular.cors-url=http://$(hwk_prop 'hawkular-alerts.bind-address'):8003"
JAVA_OPTS="$JAVA_OPTS -Dhawkular.cors-headers=Hawkular-Tenant"
JAVA_OPTS="$JAVA_OPTS -Dlog4j.configurationFile=${HWK_CONFIG}/log4j2.xml"
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
Expand Down

0 comments on commit 8c8b872

Please sign in to comment.