We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dc384 commit d9d12f0Copy full SHA for d9d12f0
jvb/rootfs/etc/cont-init.d/10-config
@@ -13,7 +13,7 @@ fi
13
14
# On environments like Swarm the IP address used by the default gateway need not be
15
# the one used for inter-container traffic. Use that one for our fallback ID.
16
-XMPP_SERVER_IP=$(dig +short ${XMPP_SERVER})
+XMPP_SERVER_IP=$(dig +short +search ${XMPP_SERVER})
17
export JVB_WS_SERVER_ID_FALLBACK=$(ip route get ${XMPP_SERVER_IP} | grep -oP '(?<=src ).*' | awk '{ print $1 '})
18
19
# Local IP for the ice4j mapping harvester.
0 commit comments