diff options
| author | Rutger Broekhoff | 2026-11-30 11:47:36 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-11-30 11:47:36 +0100 |
| commit | 02475e05ccd1aa15c6a6163834f28bfebbef796f (patch) | |
| tree | 6bc6f453f07dc76f763310e1e5eade9a3e1115b7 /server/src/http_client.cppm | |
| parent | 5732f6c14618f50ffaf315b93795340219a67c66 (diff) | |
| download | routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.tar.gz routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.zip | |
RWGPS webhook and such
Diffstat (limited to 'server/src/http_client.cppm')
| -rw-r--r-- | server/src/http_client.cppm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/http_client.cppm b/server/src/http_client.cppm index 2047b01..accd5c0 100644 --- a/server/src/http_client.cppm +++ b/server/src/http_client.cppm | |||
| @@ -37,8 +37,9 @@ public: | |||
| 37 | auto host = std::string{req.at(bhttp::field::host)}; | 37 | auto host = std::string{req.at(bhttp::field::host)}; |
| 38 | if (!SSL_set_tlsext_host_name(stream.native_handle(), host.c_str())) | 38 | if (!SSL_set_tlsext_host_name(stream.native_handle(), host.c_str())) |
| 39 | { | 39 | { |
| 40 | throw beast::system_error( | 40 | throw beast::system_error{ |
| 41 | static_cast<int>(::ERR_get_error()), net::error::get_ssl_category()); | 41 | static_cast<int>(::ERR_get_error()), net::error::get_ssl_category() |
| 42 | }; | ||
| 42 | } | 43 | } |
| 43 | stream.set_verify_callback(ssl::host_name_verification(host)); | 44 | stream.set_verify_callback(ssl::host_name_verification(host)); |
| 44 | auto const results = resolver_.resolve(host, "443"); | 45 | auto const results = resolver_.resolve(host, "443"); |