mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-21 23:50:06 +08:00
fix quic beans
This commit is contained in:
parent
9a096f16da
commit
30678d49fd
@ -103,16 +103,6 @@ namespace NekoGui_fmt {
|
|||||||
return ::DisplayAddress(serverAddress, serverPort);
|
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 {
|
QString DisplayType() override {
|
||||||
if (proxy_type == proxy_TUIC) {
|
if (proxy_type == proxy_TUIC) {
|
||||||
return "TUIC";
|
return "TUIC";
|
||||||
|
|||||||
@ -244,7 +244,12 @@ namespace NekoGui_fmt {
|
|||||||
if (!serverPorts.empty())
|
if (!serverPorts.empty())
|
||||||
{
|
{
|
||||||
outbound.remove("server_port");
|
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;
|
outbound["hop_interval"] = hop_interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user