fix quic beans

This commit is contained in:
Nova 2025-02-24 20:58:01 +03:30
parent 9a096f16da
commit 30678d49fd
2 changed files with 6 additions and 11 deletions

View File

@ -103,16 +103,6 @@ namespace NekoGui_fmt {
return ::DisplayAddress(serverAddress, serverPort);
}
QString DisplayCoreType() override {
if (proxy_type == proxy_TUIC) {
return "tuic";
} else if (proxy_type == proxy_Hysteria) {
return "hysteria";
} else {
return "hysteria2";
}
}
QString DisplayType() override {
if (proxy_type == proxy_TUIC) {
return "TUIC";

View File

@ -244,7 +244,12 @@ namespace NekoGui_fmt {
if (!serverPorts.empty())
{
outbound.remove("server_port");
outbound["server_ports"] = QListStr2QJsonArray(serverPorts);
QStringList portRanges;
for (auto range : serverPorts)
{
portRanges.append(range.replace("-", ":"));
}
outbound["server_ports"] = QListStr2QJsonArray(portRanges);
outbound["hop_interval"] = hop_interval;
}