On 14/01/14 21:43, Stefan Adams wrote:
On Fri, Dec 20, 2013 at 5:53 PM, Stefan Adams <ste...@cogentinnovators.com <mailto:ste...@cogentinnovators.com>> wrote: Is it possible to listen on the same port number on both the IPv4 address and the IPv6 address? # env MOJO_LOG_LEVEL=debug MOJO_LISTEN=http://[2001:1890:1221:800::61]*:80*,http://12.110.226.61*:80* perl -Mojo -E 'a("/"=>sub{$_->app->log->debug("Remote Address: ".$_->tx->remote_address); $_->render(text=>$_->tx->remote_address."\n")})->start' daemon
Am I missing something here? Unless you are perming these two addresses out of several more, what's wrong with: MOJO_LISTEN=http://[::]:80 ? This will happily answer on both IPV4 as well IPV6 (on a linux box at least).
-- 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 mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/groups/opt_out.