Code

fix wg_send_buffer to reconnect tcp sockets on failure
[collectd.git] / src / mysql.c
index d15a055fe3296f70835e8e6daed68a46b37965bc..6337ab4d127802536fa078cc4342a085750fb7d0 100644 (file)
@@ -287,6 +287,7 @@ static void set_host (mysql_database_t *db, char *buf, size_t buflen)
 {
        if ((db->host == NULL)
                        || (strcmp ("", db->host) == 0)
+                       || (strcmp ("127.0.0.1", db->host) == 0)
                        || (strcmp ("localhost", db->host) == 0))
                sstrncpy (buf, hostname_g, buflen);
        else