Browse Source

Enable IPv6 in CMake by default

bel2125 2 năm trước cách đây
mục cha
commit
5d6ce652b8
3 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 1 1
      CMakeLists.txt
  2. 2 0
      RELEASE_NOTES.md
  3. 1 1
      VisualStudio/unit_test/unit_test.vcxproj

+ 1 - 1
CMakeLists.txt

@@ -81,7 +81,7 @@ option(CIVETWEB_ENABLE_CXX "Enables the C++ wrapper library" OFF)
 message(STATUS "C++ wrappers - ${CIVETWEB_ENABLE_CXX}")
 
 # IP Version 6
-option(CIVETWEB_ENABLE_IPV6 "Enables the IP version 6 support" OFF)
+option(CIVETWEB_ENABLE_IPV6 "Enables the IP version 6 support" ON)
 message(STATUS "IP Version 6 - ${CIVETWEB_ENABLE_IPV6}")
 
 # Websocket support

+ 2 - 0
RELEASE_NOTES.md

@@ -5,11 +5,13 @@ Release Notes v1.16
 Changes
 -------
 
+- Enable IPv6 as default when using CMake
 - Define error codes for mg_start2, mg_start_domain2, mg_connect_client2
 - Fixes for OpenSSL 3.0 support
 - Add support for Mbed TLS v3.0.0
 - WebDAV should understand Windows File Explorer (experimental)
 - Accept HTTP basic authentication
+- FreeBSD support, including CI and tests
 - Make pattern matching function availible in the public interface
 - Make base64 encoding and decoding functions available
 - Various fixes for HTTP/2 support

+ 1 - 1
VisualStudio/unit_test/unit_test.vcxproj

@@ -73,7 +73,7 @@
       </PrecompiledHeader>
       <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>MAIN_PRIVATE=main;OPENSSL_API_1_1;LOCAL_TEST;REPLACE_CHECK_FOR_LOCAL_DEBUGGING;LOCAL_TEST;USE_IPV6;USE_WEBSOCKET;MEMORY_DEBUGGING;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>MAIN_PUBLIC_SERVER=main;OPENSSL_API_1_1;LOCAL_TEST;REPLACE_CHECK_FOR_LOCAL_DEBUGGING;LOCAL_TEST;USE_IPV6;USE_WEBSOCKET;MEMORY_DEBUGGING;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <AdditionalIncludeDirectories>$(ProjectDir)..\..\src;$(ProjectDir)..\..\include;$(ProjectDir)..\..\src\third_party\lua-5.2.4\src;$(ProjectDir)..\..\..\check-0.10.0\;$(ProjectDir)..\..\..\check-0.10.0\src\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Link>