cpp-httplib
cpp-httplib copied to clipboard
The URL regular expression cannot match an IPv6 address
inline Client::Client(const std::string &scheme_host_port, const std::string &client_cert_path, const std::string &client_key_path) { const static std::regex re( R"((?:([a-z]+)://)?(?:[([\d:]+)]|([^:/?#]+))(?::(\d+))?)");
The 're' is unable to match 'http://[ff06::c3]:3000' because '[([\d:]+)]' can only match sequences of digits.