X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=2f990a21c0289c4f4b851a59e500fba575d54730;hb=22ba280197b0ab9befc9d74f4b06ccd04b22d0c2;hp=ddde840a4813df60c4b49c1bc168a80689037c3f;hpb=9cbc0fe63abd2bd3658b42f19ee144f803b658fa;p=collectd.git diff --git a/src/bind.c b/src/bind.c index ddde840a..2f990a21 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1395,7 +1395,7 @@ static int bind_init (void) /* {{{ */ curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, bind_curl_callback); - curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION); + curl_easy_setopt (curl, CURLOPT_USERAGENT, COLLECTD_USERAGENT); curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, bind_curl_error); curl_easy_setopt (curl, CURLOPT_URL, (url != NULL) ? url : BIND_DEFAULT_URL); curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);