aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberdctl.template
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-02-16 23:53:29 +0100
committerBadlop <badlop@process-one.net>2011-02-16 23:53:29 +0100
commitfe40a9c5f63a1a17235f32d7eaacbc5e1f9cd476 (patch)
tree57d45d5d202503c41c4315647971deb43f484e65 /src/ejabberdctl.template
parentNew Indonesian translation (thanks to Irfan Mahfudz Guntur)(EJAB-1407) (diff)
New DIST_USE_INTERFACE to restrict IP where erlang connections are listened (EJAB-1404)
Diffstat (limited to 'src/ejabberdctl.template')
-rw-r--r--src/ejabberdctl.template4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template
index a21c6527c..f12a12482 100644
--- a/src/ejabberdctl.template
+++ b/src/ejabberdctl.template
@@ -82,6 +82,10 @@ else
KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
fi
+if [ "$INET_DIST_INTERFACE" != "" ] ; then
+ KERNEL_OPTS+="-kernel inet_dist_use_interface \"${INET_DIST_INTERFACE}\""
+fi
+
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS"
# define additional environment variables