diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:29:48 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:29:48 +0200 |
| commit | b54869391faab7ef91586c81de21f18a61bac5aa (patch) | |
| tree | b3fbeefcd98c1de0350f5f5693cb928c816300be /plugins/check_curl.d | |
| parent | 4966b920a2392484a6ae83a4a499c24a2942c832 (diff) | |
| download | monitoring-plugins-b54869391faab7ef91586c81de21f18a61bac5aa.tar.gz | |
Quick save
Diffstat (limited to 'plugins/check_curl.d')
| -rw-r--r-- | plugins/check_curl.d/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h index 90ea3810..43be0306 100644 --- a/plugins/check_curl.d/config.h +++ b/plugins/check_curl.d/config.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include "thresholds.h" | 6 | #include "thresholds.h" |
| 7 | #include <stddef.h> | 7 | #include <stddef.h> |
| 8 | #include <string.h> | 8 | #include <string.h> |
| 9 | #include <sys/socket.h> | ||
| 9 | #include "curl/curl.h" | 10 | #include "curl/curl.h" |
| 10 | 11 | ||
| 11 | enum { | 12 | enum { |
| @@ -37,6 +38,7 @@ typedef struct { | |||
| 37 | unsigned short virtual_port; | 38 | unsigned short virtual_port; |
| 38 | char *host_name; | 39 | char *host_name; |
| 39 | char *server_url; | 40 | char *server_url; |
| 41 | sa_family_t sin_family; | ||
| 40 | 42 | ||
| 41 | bool automatic_decompression; | 43 | bool automatic_decompression; |
| 42 | bool haproxy_protocol; | 44 | bool haproxy_protocol; |
| @@ -91,6 +93,7 @@ check_curl_config check_curl_config_init() { | |||
| 91 | .virtual_port = 0, | 93 | .virtual_port = 0, |
| 92 | .host_name = NULL, | 94 | .host_name = NULL, |
| 93 | .server_url = strdup(DEFAULT_SERVER_URL), | 95 | .server_url = strdup(DEFAULT_SERVER_URL), |
| 96 | .sin_family = AF_UNSPEC, | ||
| 94 | 97 | ||
| 95 | .automatic_decompression = false, | 98 | .automatic_decompression = false, |
| 96 | .haproxy_protocol = false, | 99 | .haproxy_protocol = false, |
