Do not add check-interval and tolerance to SSID groups in QuanX configs

This commit is contained in:
Tindy X committed 2024-04-06 21:30:10 +08:00
1 parent fb6a830d7b
commit 6af2c56fc8
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
#include "def.h" #include "def.h"
enum ProxyGroupType enum class ProxyGroupType
{ {
Select, Select,
URLTest, URLTest,
@@ -13,7 +13,7 @@ enum ProxyGroupType
SSID SSID
}; };
enum BalanceStrategy enum class BalanceStrategy
{ {
ConsistentHashing, ConsistentHashing,
RoundRobin RoundRobin
+1 -1
View File
@@ -3,7 +3,7 @@
#include "def.h" #include "def.h"
enum RulesetType enum class RulesetType
{ {
SurgeRuleset, SurgeRuleset,
QuantumultX, QuantumultX,
+1 -1
View File
@@ -1559,7 +1559,7 @@ void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<Ruleset
std::string proxies = join(filtered_nodelist, ", "); std::string proxies = join(filtered_nodelist, ", ");
std::string singlegroup = type + "=" + x.Name + ", " + proxies; std::string singlegroup = type + "=" + x.Name + ", " + proxies;
if(type != "static") if(x.Type != ProxyGroupType::Select && x.Type != ProxyGroupType::SSID)
{ {
singlegroup += ", check-interval=" + std::to_string(x.Interval); singlegroup += ", check-interval=" + std::to_string(x.Interval);
if(x.Tolerance > 0) if(x.Tolerance > 0)