added a template for the v2ray protocol

This commit is contained in:
vladimir.kuznetsov 2023-02-09 12:38:54 +03:00
parent dc2a1467c7
commit 8032e55d7c
14 changed files with 124 additions and 10 deletions

View file

@ -0,0 +1,22 @@
#ifndef V2RAYPROTOCOL_H
#define V2RAYPROTOCOL_H
#include "vpnprotocol.h"
class V2RayProtocol : public VpnProtocol
{
public:
V2RayProtocol(const QJsonObject& configuration, QObject* parent = nullptr);
virtual ~V2RayProtocol() override;
ErrorCode start() override;
void stop() override;
private:
QJsonObject m_shadowSocksConfig;
void writeV2RayConfiguration(const QJsonObject &configuration);
const QString v2rayExecPath() const;
};
#endif // V2RAYPROTOCOL_H