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

This commit is contained in:
Tindy X 2024-04-06 21:30:10 +08:00
parent fb6a830d7b
commit 6af2c56fc8
No known key found for this signature in database
GPG Key ID: 7FA1E66774759718
3 changed files with 4 additions and 4 deletions

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

View File

@ -3,7 +3,7 @@
#include "def.h" #include "def.h"
enum RulesetType enum class RulesetType
{ {
SurgeRuleset, SurgeRuleset,
QuantumultX, QuantumultX,

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)