added a template for the v2ray protocol
This commit is contained in:
parent
dc2a1467c7
commit
8032e55d7c
14 changed files with 124 additions and 10 deletions
22
client/protocols/v2rayprotocol.h
Normal file
22
client/protocols/v2rayprotocol.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue