[traffic] Default URL

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-07-29 20:39:57 +03:00
parent 0106dc3fe5
commit dde50bd0a1
2 changed files with 4 additions and 1 deletions

View File

@@ -75,6 +75,7 @@
#include "std/target_os.hpp" #include "std/target_os.hpp"
#include "defines.hpp" #include "defines.hpp"
#include "private.h"
#include <algorithm> #include <algorithm>
@@ -2628,7 +2629,7 @@ std::string Framework::LoadTrafficHttpUrl()
{ {
std::string url; std::string url;
if (!settings::Get(kTrafficHttpUrlKey, url)) if (!settings::Get(kTrafficHttpUrlKey, url))
url = ""; url = TRAFFIC_HTTP_URL_DEFAULT;
return url; return url;
} }

View File

@@ -8,5 +8,7 @@
#define METASERVER_URL "https://cdn-us-1.comaps.app/servers" #define METASERVER_URL "https://cdn-us-1.comaps.app/servers"
#define DEFAULT_URLS_JSON "[ \"https://cdn-us-2.comaps.tech/\", \"https://comaps.firewall-gateway.de/\", \"https://cdn-us-1.comaps.app/\", \"https://cdn-fi-1.comaps.app/\", \"https://comaps-cdn.s3-website.cloud.ru/\" ]" #define DEFAULT_URLS_JSON "[ \"https://cdn-us-2.comaps.tech/\", \"https://comaps.firewall-gateway.de/\", \"https://cdn-us-1.comaps.app/\", \"https://cdn-fi-1.comaps.app/\", \"https://comaps-cdn.s3-website.cloud.ru/\" ]"
#define DEFAULT_CONNECTION_CHECK_IP "151.101.195.52" // For now the IP of comaps.app (Fastly CDN) #define DEFAULT_CONNECTION_CHECK_IP "151.101.195.52" // For now the IP of comaps.app (Fastly CDN)
// TODO temporary URL, replace with final one once we have a server
#define TRAFFIC_HTTP_URL_DEFAULT "http://traff:8080/subscription-manager"
#define USER_BINDING_PKCS12 "" #define USER_BINDING_PKCS12 ""
#define USER_BINDING_PKCS12_PASSWORD "" #define USER_BINDING_PKCS12_PASSWORD ""