summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-04 10:40:02 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:07 +0100
commit75c29d4f766ada3a6a01522c3608c7693cddfa4f (patch)
treeff13fd25c0cf34269eb2fdc4f058da156a22d1b7 /src/client
parent9b7446f103aee6aabd50bdddc21cb400e04e22c0 (diff)
do not send version information in CURL downloads and MOTD requests
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_curl.c3
-rw-r--r--src/client/cl_main.c2
2 files changed, 1 insertions, 4 deletions
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 );
}