From: Florian Forster Date: Fri, 6 Feb 2009 15:53:49 +0000 (+0100) Subject: curl plugin: Enable the `Verify{Peer,Host}' options by default. X-Git-Tag: collectd-4.6.0~50 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0a62dc9906182ef285db88d29f413f2a3868200c;p=collectd.git curl plugin: Enable the `Verify{Peer,Host}' options by default. So the curl plugin behaves just like the apache plugin in this respect. --- diff --git a/src/curl.c b/src/curl.c index cfe5a4ff..88b5496d 100644 --- a/src/curl.c +++ b/src/curl.c @@ -395,6 +395,11 @@ static int cc_config_add_page (oconfig_item_t *ci) /* {{{ */ return (-1); } memset (page, 0, sizeof (*page)); + page->url = NULL; + page->user = NULL; + page->pass = NULL; + page->verify_peer = 1; + page->verify_host = 1; page->instance = strdup (ci->values[0].value.string); if (page->instance == NULL)