projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
999f027
)
curl plugin: Enable the `Verify{Peer,Host}' options by default.
author
Florian Forster
<octo@huhu.verplant.org>
Fri, 6 Feb 2009 15:53:49 +0000
(16:53 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 6 Feb 2009 15:53:49 +0000
(16:53 +0100)
So the curl plugin behaves just like the apache plugin in this respect.
src/curl.c
patch
|
blob
|
history
diff --git
a/src/curl.c
b/src/curl.c
index
cfe5a4f
..
88b5496
100644
(file)
--- 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)