Or instead of enabling SSL on all the ports, it can be done selectively
by adding the ":ssl" suffix to the individual "--port" arguments.
The maybe_upgrade_to_ssl function allows Net::Server::SS::PreFork's
pre_bind method to look at $self->{options}, which is where Starman::Server has
stashed the SSL arguments.
See also a PR I'm submitting to p5-Server-Starter that allows
start_server's --port argument to take an ":ssl" suffix, like "--port
IP:PORT:ssl".
This commit goes along with a PR I'm submitting to p5-Net-Server-SS-PreFork.
It allows you to run starman under start_server like this:
Or instead of enabling SSL on all the ports, it can be done selectively by adding the ":ssl" suffix to the individual "--port" arguments.
The maybe_upgrade_to_ssl function allows Net::Server::SS::PreFork's pre_bind method to look at $self->{options}, which is where Starman::Server has stashed the SSL arguments.
See also a PR I'm submitting to p5-Server-Starter that allows start_server's --port argument to take an ":ssl" suffix, like "--port IP:PORT:ssl".