From a5ed5126e8498d53a5f843d591ff183951418d1f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 28 Mar 2009 00:30:58 +0100 Subject: Take the server port out of the updates dir It doesn't make much sense to combine the update host with the server port. Either use the update host (and path) or the server and its port. To me it makes more sense that if different servers share the same update host, this data should be shared by the client. Ultimately we should store the updates by their hash, so that we can stick everything in the same place and avoid storing any duplicates. --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b10a8c42..5de5f365 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -250,8 +250,7 @@ static void setUpdatesDir() { if (pos + 3 < updateHost.length()) { - updates << "updates/" << updateHost.substr(pos + 3) - << "/" << loginData.port; + updates << "updates/" << updateHost.substr(pos + 3); updatesDir = updates.str(); } else -- cgit v1.2.3-70-g09d2