mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
feat: add TUIC protocol (#781)
--------- Co-authored-by: 2022-blake3-chacha8-poly1305 <139959885+xchacha20-ietf-poly1305@users.noreply.github.com> Co-authored-by: arm64v8a <48624112+arm64v8a@users.noreply.github.com>
This commit is contained in:
@@ -185,7 +185,9 @@ namespace NekoGui {
|
||||
} else if (type == "naive") {
|
||||
bean = new NekoGui_fmt::NaiveBean();
|
||||
} else if (type == "hysteria") {
|
||||
bean = new NekoGui_fmt::HysteriaBean();
|
||||
bean = new NekoGui_fmt::QUICBean(NekoGui_fmt::QUICBean::proxy_Hysteria);
|
||||
} else if (type == "tuic") {
|
||||
bean = new NekoGui_fmt::QUICBean(NekoGui_fmt::QUICBean::proxy_TUIC);
|
||||
} else if (type == "custom") {
|
||||
bean = new NekoGui_fmt::CustomBean();
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace NekoGui_fmt {
|
||||
|
||||
class NaiveBean;
|
||||
|
||||
class HysteriaBean;
|
||||
class QUICBean;
|
||||
|
||||
class CustomBean;
|
||||
|
||||
@@ -65,8 +65,8 @@ namespace NekoGui {
|
||||
return (NekoGui_fmt::NaiveBean *) bean.get();
|
||||
};
|
||||
|
||||
[[nodiscard]] NekoGui_fmt::HysteriaBean *HysteriaBean() const {
|
||||
return (NekoGui_fmt::HysteriaBean *) bean.get();
|
||||
[[nodiscard]] NekoGui_fmt::QUICBean *QUICBean() const {
|
||||
return (NekoGui_fmt::QUICBean *) bean.get();
|
||||
};
|
||||
|
||||
[[nodiscard]] NekoGui_fmt::CustomBean *CustomBean() const {
|
||||
|
||||
Reference in New Issue
Block a user