24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

* 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
This commit is contained in:
Badlop 2008-03-09 10:09:38 +00:00
parent c6f57c13da
commit 5351f56ae1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-09 Badlop <badlop@process-one.net>
* src/mod_proxy65/mod_proxy65_service.erl: Implement alternative
to the deprecated function inet:ip_to_bytes (thanks to Evgeniy
Khramtsov)(EJAB-542)
2008-03-04 Badlop <badlop@process-one.net> 2008-03-04 Badlop <badlop@process-one.net>
* doc/guide.tex: Improve documentation of host_config * doc/guide.tex: Improve documentation of host_config

View File

@ -201,7 +201,7 @@ parse_options(ServerHost, Opts) ->
none -> get_proxy_or_domainip(ServerHost, MyHost); none -> get_proxy_or_domainip(ServerHost, MyHost);
Addr -> Addr Addr -> Addr
end, 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)}], StreamAddr = [{"jid", MyHost}, {"host", StrIP}, {"port", integer_to_list(Port)}],
{IP, #state{myhost = MyHost, {IP, #state{myhost = MyHost,
serverhost = ServerHost, serverhost = ServerHost,