diff options
Diffstat (limited to 'app/jitsi/build/jitsi-videobridge/jvb_run')
-rwxr-xr-x | app/jitsi/build/jitsi-videobridge/jvb_run | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/jitsi/build/jitsi-videobridge/jvb_run b/app/jitsi/build/jitsi-videobridge/jvb_run index 39668a8..3a78c46 100755 --- a/app/jitsi/build/jitsi-videobridge/jvb_run +++ b/app/jitsi/build/jitsi-videobridge/jvb_run @@ -1,6 +1,16 @@ #!/bin/bash update-ca-certificates -f +if [ -z "${JITSI_NAT_LOCAL_IP}" ]; then + JITSI_NAT_LOCAL_IP=$(ip route get $(ip route show 0.0.0.0/0 | grep -oP 'via \K\S+') | grep -oP 'src \K\S+') +fi + +if [ -z "${JITSI_NAT_PUBLIC_IP}" ]; then + JITSI_NAT_PUBLIC_IP=$(curl https://ifconfig.me) +fi + +echo "NAT config: ${JITSI_NAT_LOCAL_IP} -> ${JITSI_NAT_PUBLIC_IP}" + exec java \ -Xmx3072m \ -XX:+UseConcMarkSweepGC \ |