25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Make native dynamic node names work when using fully qualified domain names

This should fix issue reported in 4184
This commit is contained in:
Paweł Chmielowski 2024-06-13 18:02:13 +02:00
parent 103a30df2c
commit 2c5a8f0860

View File

@ -273,7 +273,11 @@ uid() {
else else
# Erlang/OTP 23 or higher: use native dynamic node code # Erlang/OTP 23 or higher: use native dynamic node code
# https://www.erlang.org/patches/otp-23.0#OTP-13812 # https://www.erlang.org/patches/otp-23.0#OTP-13812
echo undefined if [ "$ERLANG_NODE" != "${ERLANG_NODE%.*}" ]; then
echo "undefined@${ERLANG_NODE#*@}"
else
echo "undefined"
fi
fi fi
} }