aboutsummaryrefslogtreecommitdiff
path: root/src/mod_proxy65_service.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_proxy65_service.erl')
-rw-r--r--src/mod_proxy65_service.erl10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mod_proxy65_service.erl b/src/mod_proxy65_service.erl
index fe07ca72a..5dcb79944 100644
--- a/src/mod_proxy65_service.erl
+++ b/src/mod_proxy65_service.erl
@@ -266,19 +266,11 @@ get_streamhost(Host, ServerHost) ->
get_endpoint(Host) ->
Port = mod_proxy65_opt:port(Host),
IP = case mod_proxy65_opt:ip(Host) of
- undefined -> get_my_ip();
+ undefined -> misc:get_my_ip();
Addr -> Addr
end,
{Port, IP, tcp}.
--spec get_my_ip() -> inet:ip_address().
-get_my_ip() ->
- {ok, MyHostName} = inet:gethostname(),
- case inet:getaddr(MyHostName, inet) of
- {ok, Addr} -> Addr;
- {error, _} -> {127, 0, 0, 1}
- end.
-
max_connections(ServerHost) ->
mod_proxy65_opt:max_connections(ServerHost).