diff options
author | Badlop <badlop@process-one.net> | 2008-03-09 10:09:38 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2008-03-09 10:09:38 +0000 |
commit | ee339aebb849574cfd6f8d7d4ca102becddfb4b6 (patch) | |
tree | 1f0e6caf71d26da6b3cdcbe5bb2318c99f8f8dd8 /src/mod_proxy65/mod_proxy65_service.erl | |
parent | add missing ~p to error message (diff) |
* src/mod_proxy65/mod_proxy65_service.erl: Implement alternative
to the deprecated function inet:ip_to_bytes (thanks to Evgeniy
Khramtsov)(EJAB-542)
SVN Revision: 1222
Diffstat (limited to 'src/mod_proxy65/mod_proxy65_service.erl')
-rw-r--r-- | src/mod_proxy65/mod_proxy65_service.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_proxy65/mod_proxy65_service.erl b/src/mod_proxy65/mod_proxy65_service.erl index 78392fa47..41c3af7d5 100644 --- a/src/mod_proxy65/mod_proxy65_service.erl +++ b/src/mod_proxy65/mod_proxy65_service.erl @@ -201,7 +201,7 @@ parse_options(ServerHost, Opts) -> none -> get_proxy_or_domainip(ServerHost, MyHost); Addr -> Addr end, - [_ | StrIP] = lists:append([[$. | integer_to_list(X)] || X <- inet:ip_to_bytes(IP)]), + StrIP = inet_parse:ntoa(IP), StreamAddr = [{"jid", MyHost}, {"host", StrIP}, {"port", integer_to_list(Port)}], {IP, #state{myhost = MyHost, serverhost = ServerHost, |