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
37
client/protocols/v2rayprotocol.cpp
Normal file
37
client/protocols/v2rayprotocol.cpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#include "v2rayprotocol.h"
|
||||
|
||||
#include "utilities.h"
|
||||
|
||||
V2RayProtocol::V2RayProtocol(const QJsonObject &configuration, QObject *parent) : VpnProtocol(configuration, parent)
|
||||
{
|
||||
writeV2RayConfiguration(configuration);
|
||||
}
|
||||
|
||||
V2RayProtocol::~V2RayProtocol()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ErrorCode V2RayProtocol::start()
|
||||
{
|
||||
return ErrorCode::NoError;
|
||||
}
|
||||
|
||||
void V2RayProtocol::stop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void V2RayProtocol::writeV2RayConfiguration(const QJsonObject &configuration)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const QString V2RayProtocol::v2rayExecPath() const
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
return Utils::executable(QString("v2ray/v2ray"), true);
|
||||
#else
|
||||
return Utils::executable(QString("/v2ray/v2ray"), true);
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue