X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmysql.c;h=6337ab4d127802536fa078cc4342a085750fb7d0;hb=55b2b2d01f263a96763ad24b02f01865d5009fed;hp=d15a055fe3296f70835e8e6daed68a46b37965bc;hpb=d0bf11d455b9da5770382f3cd20667723f1bbdb5;p=collectd.git diff --git a/src/mysql.c b/src/mysql.c index d15a055f..6337ab4d 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -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