diyaz has asked for the wisdom of the Perl Monks concerning the following question:
# Listen
{
is_deeply(Mojo::Server::Daemon->new->listen, 'http://*:3000',
'right value');
local $ENV{MOJO_LISTEN} = 'http://127.0.0.1:8080';
is_deeply(Mojo::Server::Daemon->new->listen,
'http://127.0.0.1:8080', 'right value');
$ENV{MOJO_LISTEN} = 'http://*:80,https://*:443';
is_deeply(
Mojo::Server::Daemon->new->listen,
'http://*:80', 'https://*:443',
'right value'
);
}
|
|---|