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
3 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
#include "def.h"
enum ProxyGroupType
enum class ProxyGroupType
{
Select,
URLTest,
@@ -13,7 +13,7 @@ enum ProxyGroupType
SSID
};
enum BalanceStrategy
enum class BalanceStrategy
{
ConsistentHashing,
RoundRobin

View File

@@ -3,7 +3,7 @@
#include "def.h"
enum RulesetType
enum class RulesetType
{
SurgeRuleset,
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 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);
if(x.Tolerance > 0)