aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd_cli.c
diff options
context:
space:
mode:
authorHolger Weiß <[email protected]>2010-11-10 23:03:44 +0100
committerHolger Weiß <[email protected]>2010-11-17 10:06:38 +0100
commitbcf3b3d0d589666575d9b044d0779be2e40e1762 (patch)
treedf86d361b39d348d3f24ce91762e3af9b78c8fe5 /erts/epmd/src/epmd_cli.c
parentf26528bbea0a24674e797a58b97117c1f8cf163f (diff)
downloadotp-bcf3b3d0d589666575d9b044d0779be2e40e1762.tar.gz
otp-bcf3b3d0d589666575d9b044d0779be2e40e1762.tar.bz2
otp-bcf3b3d0d589666575d9b044d0779be2e40e1762.zip
Allow user to specify the IP address epmd binds to
The IP address(es) epmd binds to can now be specified by the user, either via epmd's new "-address" option or (if that's not used) by setting the environment variable ERL_EPMD_ADDRESS. Multiple addresses may be specified using a comma-separated list. If the loopback address is not in this list, it will be added implicitly, so that the daemon can be queried by an interactive epmd process.
Diffstat (limited to 'erts/epmd/src/epmd_cli.c')
-rw-r--r--erts/epmd/src/epmd_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/epmd/src/epmd_cli.c b/erts/epmd/src/epmd_cli.c
index 7c60ba0420..ac55ba6bb6 100644
--- a/erts/epmd/src/epmd_cli.c
+++ b/erts/epmd/src/epmd_cli.c
@@ -137,7 +137,7 @@ static int conn_to_epmd(EpmdVars *g)
{ /* store port number in unsigned short */
unsigned short sport = g->port;
- SET_ADDR_LOOPBACK(address, FAMILY, sport);
+ SET_ADDR(address, EPMD_ADDR_LOOPBACK, sport);
}
if (connect(connect_sock, (struct sockaddr*)&address, sizeof address) < 0)