mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
update xray preset
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
namespace Preset {
|
namespace Preset {
|
||||||
namespace Xray {
|
namespace Xray {
|
||||||
inline QStringList UtlsFingerPrint = {"", "chrome", "firefox", "edge", "safari", "360", "qq", "ios", "android", "random", "randomized"};
|
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 Xray
|
||||||
|
|
||||||
namespace SingBox {
|
namespace SingBox {
|
||||||
@@ -11,6 +12,7 @@ namespace Preset {
|
|||||||
inline QStringList DomainStrategy = {"", "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6"};
|
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 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 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 SingBox
|
||||||
|
|
||||||
namespace Windows {
|
namespace Windows {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include "ui_edit_trojan_vless.h"
|
#include "ui_edit_trojan_vless.h"
|
||||||
|
|
||||||
#include "fmt/TrojanVLESSBean.hpp"
|
#include "fmt/TrojanVLESSBean.hpp"
|
||||||
|
#include "fmt/Preset.hpp"
|
||||||
|
|
||||||
EditTrojanVLESS::EditTrojanVLESS(QWidget *parent) : QWidget(parent), ui(new Ui::EditTrojanVLESS) {
|
EditTrojanVLESS::EditTrojanVLESS(QWidget *parent) : QWidget(parent), ui(new Ui::EditTrojanVLESS) {
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
@@ -22,6 +23,7 @@ void EditTrojanVLESS::onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) {
|
|||||||
ui->flow_l->hide();
|
ui->flow_l->hide();
|
||||||
}
|
}
|
||||||
ui->password->setText(bean->password);
|
ui->password->setText(bean->password);
|
||||||
|
ui->flow->addItems(IS_NEKO_BOX ? Preset::SingBox::Flows : Preset::Xray::Flows);
|
||||||
ui->flow->setCurrentText(bean->flow);
|
ui->flow->setCurrentText(bean->flow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,11 +38,6 @@
|
|||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">xtls-rprx-vision</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user