Fixes to ssl/tls, misc improvements
* Use the PHP context options to configure tls rather than reinventing the wheel. * Properly setup the SocketServer for ssl * Added generic getter for config values
This commit is contained in:
@ -80,7 +80,7 @@ class Server
|
||||
$this->server->listen($socket);
|
||||
$this->logger->info(sprintf(
|
||||
"Listening on %s",
|
||||
str_replace("tcp://",($socket instanceof SecureServer?"https://":"http://"),$socket->getAddress())
|
||||
strtr($socket->getAddress(), [ "tcp://"=>"http://", "tls://"=>"https://"])
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user