tUpdate to make the metaserver work with new SourceForge system. - vaccinewars … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 643dc6f5f3084075707f7aea83343fb6790f7a47 | |
parent 54a5538c8d5f20e7c963e8c5dd26d513be5df136 | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 28 May 2011 06:12:52 +0000 | |
Update to make the metaserver work with new SourceForge system. | |
Diffstat: | |
M ChangeLog | 2 ++ | |
M src/network.c | 7 +++++-- | |
2 files changed, 7 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/ChangeLog b/ChangeLog | |
t@@ -5,6 +5,8 @@ SVN | |
and Francois Marier. | |
- Support for old GTK1 and GLIB1 libraries removed - we now need version 2 | |
of these libraries to build dopewars. | |
+ - Update metaserver to work with new SourceForge; older versions can no | |
+ longer successfully register with the metaserver. | |
- Fix for a DOS against the server using the REQUESTJET message type | |
(thanks to Doug Prostko for reporting the problem). | |
diff --git a/src/network.c b/src/network.c | |
t@@ -1142,8 +1142,11 @@ static void SendHttpRequest(HttpConnection *conn) | |
text = g_string_new(""); | |
- g_string_sprintf(text, "%s http://%s:%u%s HTTP/1.0", | |
- conn->Method, conn->HostName, conn->Port, conn->Query); | |
+ g_string_sprintf(text, "%s %s HTTP/1.0", | |
+ conn->Method, conn->Query); | |
+ QueueMessageForSend(&conn->NetBuf, text->str); | |
+ | |
+ g_string_sprintf(text, "Host: %s", conn->HostName); | |
QueueMessageForSend(&conn->NetBuf, text->str); | |
if (conn->Headers) |