[ejabberd] IPv6 address problem

Jo Galara jogalara at gmail.com
Tue May 3 18:40:49 MSD 2011


On 05/03/2011 04:29 PM, Evgeniy Khramtsov wrote:
> 04.05.2011 00:13, Jo Galara wrote:
>> Hi,
>>
>> I want to use the IP address "2001:4dd0:fc84::6" as IPv6 address for
>> mod_proxy65. What do I have to set in "{ip, {16#???, 16#???....}}" for
>> the correct address? I've read the manual but can't get it to work. I
>> don't know how to split up the IPv6 address for the {ip}-block.
> 
> Indeed, there is a problem with ipv6, I'll try to fix it.
> For now, you can do the following:
> $ erl
> Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:4:4] [rq:4]
> [async-threads:0] [kernel-poll:false]
> 
> Eshell V5.8.3  (abort with ^G)
> 1> inet_parse:address("2001:4dd0:fc84::6").
> {ok,{8193,19920,64644,0,0,0,0,6}}
> 
> So {8193,19920,64644,0,0,0,0,6} is your address.
> 

{ip, {16#2001, 16#4dd0, 16#fc84, 0, 0, 0, 0, 16#6}}   works fine. It
bound to that address. But thanks for the other method. Will be handy in
future.

-- 
Regards,

Jo Galara

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110503/7ae0d34b/attachment.pgp>


More information about the ejabberd mailing list