diff --git a/fmt/Preset.hpp b/fmt/Preset.hpp index 9ca7cec..660d5e3 100644 --- a/fmt/Preset.hpp +++ b/fmt/Preset.hpp @@ -3,7 +3,8 @@ namespace Preset { namespace Xray { inline QStringList UtlsFingerPrint = {"", "chrome", "firefox", "edge", "safari", "360", "qq", "ios", "android", "random", "randomized"}; - inline QStringList ShadowsocksMethods = {"2022-blake3-aes-128-gcm", "2022-blake3-aes-256-gcm", "2022-blake3-chacha20-poly1305", "aes-256-gcm", "aes-128-gcm", "chacha20-poly1305", "none"}; + inline QStringList ShadowsocksMethods = {"2022-blake3-aes-128-gcm", "2022-blake3-aes-256-gcm", "2022-blake3-chacha20-poly1305", "aes-256-gcm", "aes-128-gcm", "chacha20-poly1305", "xchacha20-ploy1305", "none"}; + inline QStringList Flows = {"xtls-rprx-vision", "xtls-rprx-vision-udp443"}; } // namespace Xray namespace SingBox { @@ -11,6 +12,7 @@ namespace Preset { inline QStringList DomainStrategy = {"", "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6"}; inline QStringList UtlsFingerPrint = {"", "chrome", "firefox", "edge", "safari", "360", "qq", "ios", "android", "random", "randomized"}; inline QStringList ShadowsocksMethods = {"2022-blake3-aes-128-gcm", "2022-blake3-aes-256-gcm", "2022-blake3-chacha20-poly1305", "none", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm", "chacha20-ietf-poly1305", "xchacha20-ietf-poly1305", "aes-128-ctr", "aes-192-ctr", "aes-256-ctr", "aes-128-cfb", "aes-192-cfb", "aes-256-cfb", "rc4-md5", "chacha20-ietf", "xchacha20"}; + inline QStringList Flows = {"xtls-rprx-vision"}; } // namespace SingBox namespace Windows { diff --git a/ui/edit/edit_trojan_vless.cpp b/ui/edit/edit_trojan_vless.cpp index 5b939ee..db71c84 100644 --- a/ui/edit/edit_trojan_vless.cpp +++ b/ui/edit/edit_trojan_vless.cpp @@ -2,6 +2,7 @@ #include "ui_edit_trojan_vless.h" #include "fmt/TrojanVLESSBean.hpp" +#include "fmt/Preset.hpp" EditTrojanVLESS::EditTrojanVLESS(QWidget *parent) : QWidget(parent), ui(new Ui::EditTrojanVLESS) { ui->setupUi(this); @@ -22,6 +23,7 @@ void EditTrojanVLESS::onStart(std::shared_ptr _ent) { ui->flow_l->hide(); } ui->password->setText(bean->password); + ui->flow->addItems(IS_NEKO_BOX ? Preset::SingBox::Flows : Preset::Xray::Flows); ui->flow->setCurrentText(bean->flow); } diff --git a/ui/edit/edit_trojan_vless.ui b/ui/edit/edit_trojan_vless.ui index 01b2657..ae622b5 100644 --- a/ui/edit/edit_trojan_vless.ui +++ b/ui/edit/edit_trojan_vless.ui @@ -38,11 +38,6 @@ - - - xtls-rprx-vision - -