diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-02-25 17:13:38 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-02-25 18:39:56 -0800 |
| commit | 53a9740d1dcbad6be4b4c1a10a5f3fcbb97a5be9 (patch) | |
| tree | 00c49f3cd56f5797ec0d3f31dab689c6573fc6e6 /cmake | |
| parent | 8e62028a0db24364ea218007811e58ea11d0b64f (diff) | |
| download | nng-53a9740d1dcbad6be4b4c1a10a5f3fcbb97a5be9.tar.gz nng-53a9740d1dcbad6be4b4c1a10a5f3fcbb97a5be9.tar.bz2 nng-53a9740d1dcbad6be4b4c1a10a5f3fcbb97a5be9.zip | |
fixes #1496 Provide NNG_ENABLE_IPV6 option (disabled by default)
This also checks if the build system has the definitions for AF_INET6, which might
help in some embedded IPv4 only settings.
The resolver test is enhanced to include a check for IPv6 enabled in the kernel.
IPv6 support is enabled by default, of course.
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/NNGOptions.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/NNGOptions.cmake b/cmake/NNGOptions.cmake index abb3f03d..183e9d92 100644 --- a/cmake/NNGOptions.cmake +++ b/cmake/NNGOptions.cmake @@ -106,6 +106,11 @@ if (NNG_ENABLE_HTTP) endif() mark_as_advanced(NNG_ENABLE_HTTP) +# Some sites or kernels lack IPv6 support. This override allows us +# to prevent the use of IPv6 in environments where it isn't supported. +option (NNG_ENABLE_IPV6 "Enable IPv6." ON) +mark_as_advanced(NNG_ENABLE_IPV6) + # # Transport Options. # |
