mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Do not add check-interval and tolerance to SSID groups in QuanX configs
This commit is contained in:
parent
fb6a830d7b
commit
6af2c56fc8
@ -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
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
|
|
||||||
enum RulesetType
|
enum class RulesetType
|
||||||
{
|
{
|
||||||
SurgeRuleset,
|
SurgeRuleset,
|
||||||
QuantumultX,
|
QuantumultX,
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user