summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 233d5c8)
raw | patch | inline | side by side (parent: 233d5c8)
author | Florian Forster <octo@collectd.org> | |
Wed, 5 Oct 2016 06:51:29 +0000 (08:51 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 5 Oct 2016 06:51:29 +0000 (08:51 +0200) |
src/collectd.conf.pod | patch | blob | history | |
src/memcached.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index f867e61b6659f752dc3ae6fd8ee2113ebb3d43d6..a84bd408a57a6307182b85cfb9952ae085dac95a 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
Sets the B<host> field of dispatched values. Defaults to the global hostname
setting.
-For backwards compatibility, values are also dispatched with the global hostname
-when B<Host> is set to "127.0.0.1" or "localhost" and B<Address> is not set.
+For backwards compatibility, values are also dispatched with the global
+hostname when B<Host> is set to B<127.0.0.1> or B<localhost> and B<Address> is
+not set.
=item B<Address> I<Address>
-Hostname or IP to connect to. For backwards compatibility, it defaults to B<Host>
-value or to B<127.0.0.1> if it does not set.
+Hostname or IP to connect to. For backwards compatibility, defaults to the
+value of B<Host> or B<127.0.0.1> if B<Host> is unset.
=item B<Port> I<Port>
-TCP-Port to connect to. Defaults to B<11211>.
+TCP port to connect to. Defaults to B<11211>.
=item B<Socket> I<Path>
diff --git a/src/memcached.c b/src/memcached.c
index 46c8df409eb9bc5306fcd1f68df90be1f581dc19..765a0fd3bcd501294abd2e23b02eb6a22365c34f 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
(st->name != NULL) ? st->name : "__legacy__");
/* If no <Address> used then:
- * - connect to destination, specified by <Host>, if it presents.
- * - Keep default hostname, if any:
- * - Legacy mode is used (no configuration options at all);
- * - "Host" option is not provided;
+ * - Connect to the destination specified by <Host>, if present.
+ * If not, use the default address.
+ * - Use the default hostname (set st->host to NULL), if
+ * - Legacy mode is used (no configuration options at all), or
+ * - "Host" option is not provided, or
* - "Host" option is set to "localhost" or "127.0.0.1".
*
- * If <Address> used then host may be set to "localhost"
- * or "127.0.0.1" explicitly.
+ * If <Address> used then host may be set to "localhost" or "127.0.0.1"
+ * explicitly.
*/
if (st->connhost == NULL)
{