mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Fix shadowsocks plugin misformat runaways
This commit is contained in:
parent
4a9518e027
commit
33a7c9ff72
@ -109,6 +109,10 @@ namespace Configs {
|
|||||||
|
|
||||||
BuildResult shadowsocks::Build()
|
BuildResult shadowsocks::Build()
|
||||||
{
|
{
|
||||||
|
if (plugin.contains(";")) {
|
||||||
|
plugin_opts = SubStrAfter(plugin, ";");
|
||||||
|
plugin = SubStrBefore(plugin, ";");
|
||||||
|
}
|
||||||
QJsonObject object;
|
QJsonObject object;
|
||||||
object["type"] = "shadowsocks";
|
object["type"] = "shadowsocks";
|
||||||
mergeJsonObjects(object, outbound::Build().object);
|
mergeJsonObjects(object, outbound::Build().object);
|
||||||
|
|||||||
@ -16,6 +16,10 @@ void EditShadowSocks::onStart(std::shared_ptr<Configs::ProxyEntity> _ent) {
|
|||||||
this->ent = _ent;
|
this->ent = _ent;
|
||||||
auto outbound = this->ent->ShadowSocks();
|
auto outbound = this->ent->ShadowSocks();
|
||||||
|
|
||||||
|
if (outbound->plugin.contains(";")) {
|
||||||
|
outbound->plugin_opts = SubStrAfter(outbound->plugin, ";");
|
||||||
|
outbound->plugin = SubStrBefore(outbound->plugin, ";");
|
||||||
|
}
|
||||||
ui->method->setCurrentText(outbound->method);
|
ui->method->setCurrentText(outbound->method);
|
||||||
ui->uot->setCurrentIndex(outbound->uot);
|
ui->uot->setCurrentIndex(outbound->uot);
|
||||||
ui->password->setText(outbound->password);
|
ui->password->setText(outbound->password);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user