aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorTimmo Verlaan <[email protected]>2018-01-29 21:27:22 +0100
committerLukas Larsson <[email protected]>2018-05-16 17:49:44 +0200
commit662f3c7ba50ff8ec13d86171bcfc61fd3da9deed (patch)
treec083608e4f9eb83a4539b5f4a30d1eaf929a0d80 /erts/emulator
parent0c737f730eccd5716b6d87b0ef690fc7ad02d547 (diff)
downloadotp-662f3c7ba50ff8ec13d86171bcfc61fd3da9deed.tar.gz
otp-662f3c7ba50ff8ec13d86171bcfc61fd3da9deed.tar.bz2
otp-662f3c7ba50ff8ec13d86171bcfc61fd3da9deed.zip
epmd: allow alternative to dns resolving for nodename
This makes it possible to create a custom integration with a key-value store for example. The key would then point to the actual address. You would have to write your own epmd module to make use of that feature.
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/test/distribution_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index e40d346e10..b8b84e91a0 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -73,7 +73,7 @@
dist_evil_parallel_receiver/0]).
%% epmd_module exports
--export([start_link/0, register_node/2, register_node/3, port_please/2]).
+-export([start_link/0, register_node/2, register_node/3, port_please/2, address_please/3]).
suite() ->
[{ct_hooks,[ts_install_cth]},
@@ -2086,6 +2086,11 @@ port_please(_Name, _Ip) ->
{port, Port, Version}
end.
+address_please(_Name, _Address, _AddressFamily) ->
+ %% Use localhost.
+ IP = {127,0,0,1},
+ {ok, IP}.
+
%%% Utilities
timestamp() ->