From 2c5a8f0860d874e71f7588842d3844b1b76db663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 13 Jun 2024 18:02:13 +0200 Subject: [PATCH] Make native dynamic node names work when using fully qualified domain names This should fix issue reported in 4184 --- ejabberdctl.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ejabberdctl.template b/ejabberdctl.template index 4eea168fb..83ec7e1bd 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -273,7 +273,11 @@ uid() { else # Erlang/OTP 23 or higher: use native dynamic node code # 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 }