1
2
3
4
5
6
7
8
9
10
11
12
|
--- ejabberd-2.0.0/src/mod_proxy65/mod_proxy65_service.erl.original 2008-04-11 00:10:26.000000000 +0100
+++ ejabberd-2.0.0/src/mod_proxy65/mod_proxy65_service.erl 2008-04-11 00:11:12.000000000 +0100
@@ -201,7 +201,7 @@
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,
|