On Tue, Jan 14, 2014 at 9:02 PM, sri <[email protected]> wrote: > Is it possible for one Mojolicious process to listen on port 80 for both >> the IPv6 address as well as the IPv4 address? >> > > Should we have IPv6 experts on this list, this might be worth > investigating (and possibly patch), but i suppose portability and backwards > compatibility (especially regarding security) could be problematic. >
Perhaps the issue is related to this. When listening to two different interfaces, only the first works. When using * both work. But * does not pick up on IPv6 addresses. $ env MOJO_LOG_LEVEL=debug *MOJO_LISTEN=http://127.0.0.1:8080 <http://127.0.0.1:8080>,http://192.168.0.108:8080 <http://192.168.0.108:8080>* perl -Mojo -E 'a("/"=>sub{$_->app->log->debug("Remote Address: ".$_->tx->remote_address); $_->render(text=>$_->tx->remote_address."\n")})->start' daemon [Tue Jan 14 21:30:46 2014] [info] Listening at "http://127.0.0.1:8080". Server available at http://127.0.0.1:8080. [Tue Jan 14 21:30:46 2014] [info] Listening at "http://192.168.0.108:8080". Server available at http://192.168.0.108:8080. $ curl http://127.0.0.1:8080 127.0.0.1 $ curl http://192.168.0.108:8080 curl: (7) couldn't connect to host $ env MOJO_LOG_LEVEL=debug *MOJO_LISTEN=http://**192.168.0.108:8080 <http://192.168.0.108:8080>**,http://**127.0.0.1:8080 <http://127.0.0.1:8080>* perl -Mojo -E 'a("/"=>sub{$_->app->log->debug("Remote Address: ".$_->tx->remote_address); $_->render(text=>$_->tx->remote_address."\n")})->start' daemon [Tue Jan 14 21:34:26 2014] [info] Listening at "http://192.168.0.108:8080". Server available at http://192.168.0.108:8080. [Tue Jan 14 21:34:26 2014] [info] Listening at "http://127.0.0.1:8080". Server available at http://127.0.0.1:8080. $ curl http://127.0.0.1:8080 curl: (7) couldn't connect to host $ curl http://192.168.0.108:8080 192.168.0.108 $ env MOJO_LOG_LEVEL=debug *MOJO_LISTEN=http://*:8080* perl -Mojo -E 'a("/"=>sub{$_->app->log->debug("Remote Address: ".$_->tx->remote_address); $_->render(text=>$_->tx->remote_address."\n")})->start' daemon $ curl http://127.0.0.1:8080 127.0.0.1 $ curl http://192.168.0.108:8080 192.168.0.108 -- *----------------------------------------------------------------* *Keystone IT made the following notation* *----------------------------------------------------------------* *Email Confidentiality Notice: The information contained in this transmission is confidential, proprietary or privileged and may be subject to protection under the law, including the Health Insurance Portability and Accountability Act (HIPAA). * *This message is for the sole use of the intended individual or entity to whom it is addressed. If you are not the intended recipient, you are notified that any use, distribution or copying of the message is strictly prohibited and may subject you to criminal or civil penalties. If you received this transmission in error, please contact the sender immediately at (314) 621-9500 and delete the material from all computers.* -- 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.
