mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 17:48:48 +02:00
remove prestium integration
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user