mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Ref T249, using FSC server as obfuscated server
Only show in local builds
This commit is contained in:
@@ -234,7 +234,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
CServerList CGlobalSetup::getFsdTestServersPlusHardcodedServers() const
|
CServerList CGlobalSetup::getFsdTestServersPlusHardcodedServers() const
|
||||||
{
|
{
|
||||||
static const CServerList hardcoded({ CServer::swiftFsdTestServer() });
|
static const CServerList hardcoded({ CServer::swiftFsdTestServer(), CServer::fscServer() });
|
||||||
CServerList testServers(m_fsdTestServers);
|
CServerList testServers(m_fsdTestServers);
|
||||||
testServers.addIfAddressNotExists(hardcoded);
|
testServers.addIfAddressNotExists(hardcoded);
|
||||||
return testServers;
|
return testServers;
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ namespace BlackGui
|
|||||||
CServerList otherServers(m_otherTrafficNetworkServers.getThreadLocal());
|
CServerList otherServers(m_otherTrafficNetworkServers.getThreadLocal());
|
||||||
|
|
||||||
// add a testserver when no servers can be loaded
|
// add a testserver when no servers can be loaded
|
||||||
if (otherServers.isEmpty() && (sGui->isDeveloperFlagSet() || CBuildConfig::isLocalDeveloperDebugBuild()))
|
if (otherServers.isEmpty() && CBuildConfig::isLocalDeveloperDebugBuild())
|
||||||
{
|
{
|
||||||
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||||
CLogMessage(this).info("Added servers for testing");
|
CLogMessage(this).info("Added servers for testing");
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
// add swift test servers in case we have no servers:
|
// add swift test servers in case we have no servers:
|
||||||
// this is debug/bootstrap feature we can continue to test when something goes wrong
|
// this is debug/bootstrap feature we can continue to test when something goes wrong
|
||||||
if (serverList.isEmpty() && (sGui->isDeveloperFlagSet()))
|
if (serverList.isEmpty() && CBuildConfig::isLocalDeveloperDebugBuild())
|
||||||
{
|
{
|
||||||
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,14 @@ namespace BlackMisc
|
|||||||
return withPw ? dvp : dvnp;
|
return withPw ? dvp : dvnp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const CServer &CServer::fscServer()
|
||||||
|
{
|
||||||
|
static const CServer fsc("FSC", "FSC e.V.", "OBF:AwJIKfgkQDJEIRnno29DJlB+UK0=", 6809,
|
||||||
|
CUser(),
|
||||||
|
CFsdSetup(), CEcosystem(CEcosystem::privateFsd()), CServer::FSDServer);
|
||||||
|
return fsc;
|
||||||
|
}
|
||||||
|
|
||||||
bool CServer::matchesName(const QString &name) const
|
bool CServer::matchesName(const QString &name) const
|
||||||
{
|
{
|
||||||
return m_name.length() == name.length() &&
|
return m_name.length() == name.length() &&
|
||||||
|
|||||||
@@ -205,6 +205,9 @@ namespace BlackMisc
|
|||||||
//! swift FSD test server
|
//! swift FSD test server
|
||||||
static const CServer &swiftFsdTestServer(bool withPw = false);
|
static const CServer &swiftFsdTestServer(bool withPw = false);
|
||||||
|
|
||||||
|
//! FSC server
|
||||||
|
static const CServer &fscServer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_name;
|
QString m_name;
|
||||||
QString m_description;
|
QString m_description;
|
||||||
|
|||||||
Reference in New Issue
Block a user