From 75c29d4f766ada3a6a01522c3608c7693cddfa4f Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 4 Feb 2015 10:40:02 +0100 Subject: do not send version information in CURL downloads and MOTD requests --- src/client/cl_curl.c | 3 +-- src/client/cl_main.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c index 166fb1dc..996feaea 100644 --- a/src/client/cl_curl.c +++ b/src/client/cl_curl.c @@ -288,8 +288,7 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL ) qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_TRANSFERTEXT, 0); qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_REFERER, va("Tremulous://%s", NET_AdrToString(clc.serverAddress))); - qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_USERAGENT, va("%s %s", - Q3_VERSION, qcurl_version())); + qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_USERAGENT, PRODUCT_NAME); qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_WRITEFUNCTION, CL_cURL_CallbackWrite); qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_WRITEDATA, &clc.download); diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 67739c4b..00dc6640 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -1545,8 +1545,6 @@ void CL_RequestMotd( void ) { "%i", ((rand() << 16) ^ rand()) ^ Com_Milliseconds()); Info_SetValueForKey( info, "challenge", cls.updateChallenge ); - Info_SetValueForKey( info, "renderer", cls.glconfig.renderer_string ); - Info_SetValueForKey( info, "version", com_version->string ); NET_OutOfBandPrint( NS_CLIENT, cls.updateServer, "getmotd%s", info ); } -- cgit