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

@@ -204,7 +204,11 @@ namespace NekoGui_fmt {
outbound["uuid"] = uuid;
outbound["password"] = password;
outbound["congestion_control"] = congestionControl;
outbound["udp_relay_mode"] = udpRelayMode;
if (uos) {
outbound["udp_over_stream"]= true;
} else {
outbound["udp_relay_mode"] = udpRelayMode;
}
outbound["zero_rtt_handshake"] = zeroRttHandshake;
if (!heartbeat.trimmed().isEmpty()) outbound["heartbeat"] = heartbeat;
}