oatpp / oatpp-libressl

oatpp secure ConnectionProvider based on libressl
https://oatpp.io/
Apache License 2.0
4 stars 9 forks source link

Readme error #16

Open NumeroQuatre opened 2 years ago

NumeroQuatre commented 2 years ago

I found some code not working on 1.3.0

auto config = oatpp::libressl::Config::createDefaultServerConfig(pemFile, crtFile);
auto connectionProvider = oatpp::libressl::server::ConnectionProvider::createShared(config, 8443);

However, the code in libressl-example looks to works fine.

auto config = oatpp::libressl::Config::createDefaultServerConfigShared(pemFile, crtFile /* private key */);
auto connectionProvider = oatpp::libressl::server::ConnectionProvider::createShared(config, {"0.0.0.0", 8443, oatpp::network::Address::IP_4});

It is either something I don't understand, or something not updated from previous versions

Sincerely,