diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-07-11 22:09:42 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-07-11 22:37:26 +0200 |
commit | b782b01c290fbc4f67e0030cb534f8238383329f (patch) | |
tree | e06fc50f4daa7cc6e104a7a6af6a8bbf6b743925 /src | |
parent | d8fbeee466e6ce08d950fd694d5e58065d2fee97 (diff) |
Report if IPv6 support is enabled with the -v flag
The IPv6 support is stored in the config.h header file, instead of being
passed with the -D flag, so it is easier to read from version.cc.
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/http.c | 2 | ||||
-rw-r--r-- | src/dns.c | 1 | ||||
-rw-r--r-- | src/dns.h | 1 | ||||
-rw-r--r-- | src/version.cc | 5 |
4 files changed, 8 insertions, 1 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index d552664d..7050c7dd 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -15,7 +15,7 @@ */ -#include <config.h> +#include "config.h" #include <ctype.h> /* isdigit */ #include <unistd.h> @@ -13,6 +13,7 @@ * Non blocking pthread-handled Dns scheme */ +#include "config.h" /* * Uncomment the following line for debugging or gprof profiling. @@ -1,6 +1,7 @@ #ifndef __DNS_H__ #define __DNS_H__ +#include "config.h" #include <netinet/in.h> #ifdef __cplusplus diff --git a/src/version.cc b/src/version.cc index 18eb5019..e1eb30c3 100644 --- a/src/version.cc +++ b/src/version.cc @@ -141,6 +141,11 @@ static void print_features() #else " -TLS" #endif +#ifdef ENABLE_IPV6 + " +IPV6" +#else + " -IPV6" +#endif "\n"); } |