Skip to content

Commit

Permalink
added example for listening on all interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 15, 2014
1 parent 37abb0c commit fb0bd7e
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 all interfaces (IPv4 and IPv6)
$daemon->listen(['http://[::]:3000']);
# Listen on IPv4 and IPv6 interfaces
$daemon->listen(['http://127.0.0.1:3000', 'http://[::1]:3000']);
Expand Down

0 comments on commit fb0bd7e

Please sign in to comment.