refactoring
Protocol to DockerContainer
This commit is contained in:
parent
615bba69e5
commit
d424bb24cf
13 changed files with 60 additions and 64 deletions
|
@ -96,7 +96,7 @@ QString ShadowSocksVpnProtocol::shadowSocksExecPath()
|
|||
#endif
|
||||
}
|
||||
|
||||
QJsonObject ShadowSocksVpnProtocol::genShadowSocksConfig(const ServerCredentials &credentials, Protocol proto)
|
||||
QJsonObject ShadowSocksVpnProtocol::genShadowSocksConfig(const ServerCredentials &credentials, DockerContainer container)
|
||||
{
|
||||
QJsonObject ssConfig;
|
||||
ssConfig.insert("server", credentials.hostName);
|
||||
|
|
|
@ -13,7 +13,7 @@ public:
|
|||
ErrorCode start() override;
|
||||
void stop() override;
|
||||
|
||||
static QJsonObject genShadowSocksConfig(const ServerCredentials &credentials, Protocol proto = Protocol::ShadowSocksOverOpenVpn);
|
||||
static QJsonObject genShadowSocksConfig(const ServerCredentials &credentials, DockerContainer container = DockerContainer::ShadowSocksOverOpenVpn);
|
||||
|
||||
protected:
|
||||
void readShadowSocksConfiguration(const QJsonObject &configuration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue