Skip to content

Commit

Permalink
update xray preset
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Jul 7, 2023
1 parent 83fc8d4 commit 31db607
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion fmt/Preset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
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 {
inline QStringList VpnImplementation = {"gvisor", "system"};
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 {
Expand Down
2 changes: 2 additions & 0 deletions ui/edit/edit_trojan_vless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -22,6 +23,7 @@ void EditTrojanVLESS::onStart(std::shared_ptr<NekoGui::ProxyEntity> _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);
}

Expand Down
5 changes: 0 additions & 5 deletions ui/edit/edit_trojan_vless.ui
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
<string notr="true"/>
</property>
</item>
<item>
<property name="text">
<string notr="true">xtls-rprx-vision</string>
</property>
</item>
</widget>
</item>
</layout>
Expand Down

0 comments on commit 31db607

Please sign in to comment.