Skip to content

Commit d9d12f0

Browse files
dsmeytisDaniil Meitis
and
Daniil Meitis
authored
jvb: fix resolving XMPP server aliases
Co-authored-by: Daniil Meitis <[email protected]>
1 parent 81dc384 commit d9d12f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jvb/rootfs/etc/cont-init.d/10-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fi
1313

1414
# On environments like Swarm the IP address used by the default gateway need not be
1515
# the one used for inter-container traffic. Use that one for our fallback ID.
16-
XMPP_SERVER_IP=$(dig +short ${XMPP_SERVER})
16+
XMPP_SERVER_IP=$(dig +short +search ${XMPP_SERVER})
1717
export JVB_WS_SERVER_ID_FALLBACK=$(ip route get ${XMPP_SERVER_IP} | grep -oP '(?<=src ).*' | awk '{ print $1 '})
1818

1919
# Local IP for the ice4j mapping harvester.

0 commit comments

Comments
 (0)