feat: add sharelink for TUIC

This commit is contained in:
2022-blake3-chacha12-poly1305
2023-08-11 10:19:15 +08:00
committed by HystericalDragon
parent 1c6fe29ea6
commit e6fc84e97b
3 changed files with 45 additions and 6 deletions

View File

@@ -133,6 +133,14 @@ namespace NekoGui_sub {
if (!ok) return;
}
// TUIC
if (str.startsWith("tuic://")) {
needFix = false;
ent = NekoGui::ProfileManager::NewProxyEntity("tuic");
auto ok = ent->QUICBean()->TryParseLink(str);
if (!ok) return;
}
if (ent == nullptr) return;
// Fix