feat: add UDP over Stream for TUIC

fix: you can't enable uos with udp_relay_mode
This commit is contained in:
HystericalDragon
2023-08-25 15:32:45 +08:00
committed by arm64v8a
parent 26637883a1
commit ff3696772c
5 changed files with 77 additions and 56 deletions

View File

@@ -446,6 +446,8 @@ namespace NekoGui_sub {
bean->caText = Node2QString(proxy["ca-str"]);
bean->sni = Node2QString(proxy["sni"]);
if (Node2Bool(proxy["udp-over-stream"])) bean->uos = true;
if (!Node2QString(proxy["ip"]).isEmpty()) {
if (bean->sni.isEmpty()) bean->sni = bean->serverAddress;
bean->serverAddress = Node2QString(proxy["ip"]);