diff options
author | Badlop <badlop@process-one.net> | 2011-02-16 23:53:29 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-02-16 23:53:29 +0100 |
commit | fe40a9c5f63a1a17235f32d7eaacbc5e1f9cd476 (patch) | |
tree | 57d45d5d202503c41c4315647971deb43f484e65 /src | |
parent | New 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')
-rw-r--r-- | src/ejabberdctl.cfg.example | 11 | ||||
-rw-r--r-- | src/ejabberdctl.template | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ejabberdctl.cfg.example b/src/ejabberdctl.cfg.example index 4a3db1c8..fe703242 100644 --- a/src/ejabberdctl.cfg.example +++ b/src/ejabberdctl.cfg.example @@ -51,6 +51,17 @@ #FIREWALL_WINDOW= #. +#' INET_DIST_INTERFACE: IP address where this Erlang node listens other nodes +# +# This communication is used by ejabberdctl command line tool, +# and in a cluster of several ejabberd nodes. +# Notice that the IP address must be specified in the Erlang syntax. +# +# Default: {127,0,0,1} +# +INET_DIST_INTERFACE={127,0,0,1} + +#. #' ERL_PROCESSES: Maximum number of Erlang processes # # Erlang consumes a lot of lightweight processes. If there is a lot of activity diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index a21c6527..f12a1248 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 |