mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
a49892c7e7
* Feat: Add MtProxy (Telegram) * add path files * Feat: Add Telemt (MtProxy) * fixed secret & enum * remove old path * refactor: move logic from ui to core --------- Co-authored-by: vkamn <vk@amnezia.org>
39 lines
898 B
C++
39 lines
898 B
C++
#ifndef TELEMTPROTOCOLCONFIG_H
|
|
#define TELEMTPROTOCOLCONFIG_H
|
|
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
namespace amnezia {
|
|
|
|
struct TelemtProtocolConfig {
|
|
QString port;
|
|
QString secret;
|
|
QString tag;
|
|
QString tgLink;
|
|
QString tmeLink;
|
|
bool isEnabled = true;
|
|
QString publicHost;
|
|
QString transportMode;
|
|
QString tlsDomain;
|
|
bool maskEnabled = true;
|
|
bool tlsEmulation = false;
|
|
bool useMiddleProxy = true;
|
|
QString userName;
|
|
QStringList additionalSecrets;
|
|
QString workersMode;
|
|
QString workers;
|
|
bool natEnabled = false;
|
|
QString natInternalIp;
|
|
QString natExternalIp;
|
|
|
|
QJsonObject toJson() const;
|
|
static TelemtProtocolConfig fromJson(const QJsonObject &json);
|
|
bool equalsDockerDeploymentSettings(const TelemtProtocolConfig &other) const;
|
|
};
|
|
|
|
} // namespace amnezia
|
|
|
|
#endif // TELEMTPROTOCOLCONFIG_H
|