diff options
author | vng <viktor.govako@gmail.com> | 2012-06-06 05:09:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:39:30 +0300 |
commit | 74a22a60ada2362bc76d7053b52a80346b8590e5 (patch) | |
tree | 82f4d0664e5f4c13fcf6dcb85d847f9cd15db8fc /platform/platform.hpp | |
parent | 98efcc314a8b5f1345a58615843f905c4135a39c (diff) |
[downloader] Fix issue when url download failed. Use default server urls.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 0aff0867a7..cc94a804b3 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -119,22 +119,10 @@ public: /// @return url for clients to download maps /// Different urls are returned for versions with and without search support - inline string MetaServerUrl() const - { - if (IsFeatureSupported("search")) - return "http://active.servers.url"; - else - return "http://active.servers.url"; - } + string MetaServerUrl() const; /// @return JSON-encoded list of urls if metaserver is unreachable - inline string DefaultUrlsJSON() const - { - if (IsFeatureSupported("search")) - return "[\"http://1st.default.server/\",\"http://2nd.default.server/\",\"http://3rd.default.server/\"]"; - else - return "[\"http://1st.default.server/\",\"http://2nd.default.server/\",\"http://3rd.default.server/\"]"; - } + string DefaultUrlsJSON() const; }; extern "C" Platform & GetPlatform(); |