mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-26 02:42:25 +00:00
Do not add check-interval and tolerance to SSID groups in QuanX configs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "def.h"
|
||||
|
||||
enum RulesetType
|
||||
enum class RulesetType
|
||||
{
|
||||
SurgeRuleset,
|
||||
QuantumultX,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user