add ssXray for ios
This commit is contained in:
parent
3f90ee915d
commit
18c74f4b02
3 changed files with 15 additions and 2 deletions
|
@ -286,8 +286,8 @@ bool ContainerProps::isSupportedByCurrentPlatform(DockerContainer c)
|
||||||
case DockerContainer::OpenVpn: return true;
|
case DockerContainer::OpenVpn: return true;
|
||||||
case DockerContainer::Awg: return true;
|
case DockerContainer::Awg: return true;
|
||||||
case DockerContainer::Xray: return true;
|
case DockerContainer::Xray: return true;
|
||||||
case DockerContainer::Cloak:
|
case DockerContainer::Cloak: return true;
|
||||||
return true;
|
case DockerContainer::SSXray: return true;
|
||||||
// case DockerContainer::ShadowSocks: return true;
|
// case DockerContainer::ShadowSocks: return true;
|
||||||
default: return false;
|
default: return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,7 @@ private:
|
||||||
bool setupWireGuard();
|
bool setupWireGuard();
|
||||||
bool setupAwg();
|
bool setupAwg();
|
||||||
bool setupXray();
|
bool setupXray();
|
||||||
|
bool setupSSXray();
|
||||||
|
|
||||||
bool startOpenVPN(const QString &config);
|
bool startOpenVPN(const QString &config);
|
||||||
bool startWireGuard(const QString &jsonConfig);
|
bool startWireGuard(const QString &jsonConfig);
|
||||||
|
|
|
@ -219,6 +219,9 @@ bool IosController::connectVpn(amnezia::Proto proto, const QJsonObject& configur
|
||||||
if (proto == amnezia::Proto::Xray) {
|
if (proto == amnezia::Proto::Xray) {
|
||||||
return setupXray();
|
return setupXray();
|
||||||
}
|
}
|
||||||
|
if (proto == amnezia::Proto::SSXray) {
|
||||||
|
return setupSSXray();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -513,6 +516,15 @@ bool IosController::setupXray()
|
||||||
return startXray(xrayConfigStr);
|
return startXray(xrayConfigStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IosController::setupSSXray()
|
||||||
|
{
|
||||||
|
QJsonObject config = m_rawConfig[ProtocolProps::key_proto_config_data(amnezia::Proto::SSXray)].toObject();
|
||||||
|
QJsonDocument ssXrayConfigDoc(config);
|
||||||
|
QString ssXrayConfigStr(ssXrayConfigDoc.toJson(QJsonDocument::Compact));
|
||||||
|
|
||||||
|
return startXray(ssXrayConfigStr);
|
||||||
|
}
|
||||||
|
|
||||||
bool IosController::setupAwg()
|
bool IosController::setupAwg()
|
||||||
{
|
{
|
||||||
QJsonObject config = m_rawConfig[ProtocolProps::key_proto_config_data(amnezia::Proto::Awg)].toObject();
|
QJsonObject config = m_rawConfig[ProtocolProps::key_proto_config_data(amnezia::Proto::Awg)].toObject();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue