#include "config-feather.h"
#include "constants.h"
#include "utils/EventFilter.h"
-#include "utils/os/Prestium.h"
#include "WindowManager.h"
#include "config.h"
#include <wallet/api/wallet2_api.h>
if (!QDir().mkpath(walletDir))
qCritical() << "Unable to create dir: " << walletDir;
- // Prestium initial config
- if (conf()->get(Config::firstRun).toBool() && Prestium::detect()) {
- conf()->set(Config::proxy, Config::Proxy::i2p);
- conf()->set(Config::socks5Port, Prestium::i2pPort());
- conf()->set(Config::hideUpdateNotifications, true);
- }
-
if (parser.isSet("use-local-tor"))
conf()->set(Config::useLocalTor, true);
+++ /dev/null
-// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-FileCopyrightText: The Monero Project
-
-#include "Prestium.h"
-
-#include <QString>
-#include <QSysInfo>
-
-#include "utils/Utils.h"
-
-#define PRESTIUM_DEFAULT_PORT 4448
-
-bool Prestium::detect()
-{
- return QSysInfo::prettyProductName().contains("Prestium");
-}
-
-int Prestium::i2pPort()
-{
- QString portStr = qgetenv("PRESTIUM_FEATHER_I2P_PORT");
- if (portStr.isEmpty()) {
- return PRESTIUM_DEFAULT_PORT;
- }
-
- int port = portStr.toInt();
- if (port < 1024 || port > 65535) {
- return PRESTIUM_DEFAULT_PORT;
- }
-
- return port;
-}
\ No newline at end of file
+++ /dev/null
-// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-FileCopyrightText: The Monero Project
-
-#ifndef FEATHER_PRESTIUM_H
-#define FEATHER_PRESTIUM_H
-
-
-class Prestium {
-public:
- static bool detect();
- static int i2pPort();
-};
-
-#endif //FEATHER_PRESTIUM_H
#include <QWidget>
#include "utils/config.h"
-#include "utils/os/Prestium.h"
NetworkProxyWidget::NetworkProxyWidget(QWidget *parent)
: QWidget(parent)
break;
}
case Config::Proxy::i2p: {
- if (Prestium::detect()) {
- socks5port = 4448;
- } else {
- socks5port = 4447;
- }
+ socks5port = 4447;
break;
}
default: {
#include "constants.h"
#include "utils/nodes.h"
-#include "utils/os/Prestium.h"
#include "Utils.h"
#include "WalletWizard.h"
}
int PageNetwork::nextId() const {
- if (Prestium::detect()) {
- return WalletWizard::Page_NetworkWebsocket;
- }
-
return WalletWizard::Page_NetworkProxy;
}