From 80ed62b4c77627f8e1d4eb8ebb834ac01764b19d Mon Sep 17 00:00:00 2001 From: luocai Date: Fri, 29 Dec 2023 19:10:38 +0800 Subject: [PATCH] adapt for 32bit os. --- CMakeLists.txt | 4 +--- HttpProxy/CMakeLists.txt | 2 +- HttpProxy/ProxyHttpSession.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 349f378..f876f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,9 +14,7 @@ if(TARGET Boost::serialization) add_subdirectory(Encrypt) endif() -if(TARGET Boost::url) - add_subdirectory(HttpProxy) -endif() +add_subdirectory(HttpProxy) if(TARGET Qt${QT_VERSION_MAJOR}::Core) add_subdirectory(QtComponets) diff --git a/HttpProxy/CMakeLists.txt b/HttpProxy/CMakeLists.txt index 3874393..d6cb30c 100644 --- a/HttpProxy/CMakeLists.txt +++ b/HttpProxy/CMakeLists.txt @@ -13,7 +13,7 @@ add_library(HttpProxy target_include_directories(HttpProxy INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} - PRIVATE ${OPENSSL_INCLUDE_DIR} + PRIVATE ${OpenSSL_INCLUDE_DIR} ) target_link_libraries(HttpProxy diff --git a/HttpProxy/ProxyHttpSession.h b/HttpProxy/ProxyHttpSession.h index c30a859..95f42d2 100644 --- a/HttpProxy/ProxyHttpSession.h +++ b/HttpProxy/ProxyHttpSession.h @@ -19,7 +19,7 @@ protected: private: boost::asio::ip::tcp::resolver m_resolver; std::optional> m_parser; - boost::beast::flat_buffer m_buffer{std::numeric_limits::max()}; + boost::beast::flat_buffer m_buffer{std::numeric_limits::max()}; boost::beast::tcp_stream m_clientStream; boost::beast::tcp_stream m_serverStream; };