On Fri, Jul 26, 2013 at 4:17 AM, Dirk Koopman <[email protected]> wrote:
> So any suggestions as to why I can't listen on an ipv6 addess?
>
Confirmation that it works.
$ /sbin/ifconfig eth0 | grep inet6.*Scope:Global
inet6 addr: *2001:470:1f11:d34::4/64* Scope:Global
$ mojo version
CORE
Perl (v5.18.0, linux)
Mojolicious (4.63, Top Hat)
OPTIONAL
EV 4.0+ (4.15)
IO::Socket::IP 0.16+ (0.22)
IO::Socket::SSL 1.75+ (1.953)
$ env MOJO_LOG_LEVEL=debug MOJO_LISTEN=http://*[2001:470:1f11:d34::4]*:3000
perl -Mojo -E 'a("/"=>sub{$_->app->log->debug("Remote Address:
".$_->tx->remote_address);
$_->render(text=>$_->tx->remote_address)})->start' daemon
[Fri Dec 20 17:48:12 2013] [info] Listening at "http://
*[2001:470:1f11:d34::4]*:3000".
Server available at http://*[2001:470:1f11:d34::4]*:3000.
[Fri Dec 20 17:48:14 2013] [debug] Your secret passphrase needs to be
changed!!!
[Fri Dec 20 17:48:14 2013] [debug] GET "/".
[Fri Dec 20 17:48:14 2013] [debug] Routing to a callback.
[Fri Dec 20 17:48:14 2013] [debug] *Remote Address: 2001:470:1f11:d34::4*
[Fri Dec 20 17:48:14 2013] [debug] 200 OK (0.001000s, 1000.000/s).
...
sri, can the * in MOJO_LISTEN=http://*:3000 also include any IPv6
interfaces?
Is it possible to listen on the same port number on both the IPv4 address
and the IPv6 address?
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.