Build without wss support, if OpenSSL is not found

This commit is contained in:
badaix 2025-01-28 17:57:36 +01:00
parent c105fecc5b
commit 2addf7cc3d
16 changed files with 68 additions and 27 deletions

View file

@ -18,7 +18,6 @@
#ifndef NOMINMAX
#define NOMINMAX
#include <optional>
#endif // NOMINMAX
// prototype/interface header file
@ -88,7 +87,7 @@ void StreamUri::parse(const std::string& stream_uri)
host = strutils::uriDecode(strutils::trim_copy(tmp.substr(0, pos)));
std::string str_port;
host = utils::string::split_left(host, ':', str_port);
port = std::atoi(str_port.c_str());
port = std::strtol(str_port.c_str(), nullptr, 10);
if (port == 0)
port = std::nullopt;