Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added example for listening on multiple interfaces
  • Loading branch information
kraih committed Jan 15, 2014
1 parent b16935c commit 37abb0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojo/Server/Daemon.pm
Expand Up @@ -366,6 +366,9 @@ MOJO_LISTEN environment variable or C<http://*:3000>.
# Listen on IPv6 interface
$daemon->listen(['http://[::1]:4000']);
# Listen on IPv4 and IPv6 interfaces
$daemon->listen(['http://127.0.0.1:3000', 'http://[::1]:3000']);
# Listen on two ports with HTTP and HTTPS at the same time
$daemon->listen([qw(http://*:3000 https://*:4000)]);
Expand Down

0 comments on commit 37abb0c

Please sign in to comment.