Skip to content

Commit

Permalink
Do not add check-interval and tolerance to SSID groups in QuanX configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Apr 6, 2024
1 parent fb6a830 commit 6af2c56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config/proxygroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "def.h"

enum ProxyGroupType
enum class ProxyGroupType
{
Select,
URLTest,
Expand All @@ -13,7 +13,7 @@ enum ProxyGroupType
SSID
};

enum BalanceStrategy
enum class BalanceStrategy
{
ConsistentHashing,
RoundRobin
Expand Down
2 changes: 1 addition & 1 deletion src/config/ruleset.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "def.h"

enum RulesetType
enum class RulesetType
{
SurgeRuleset,
QuantumultX,
Expand Down
2 changes: 1 addition & 1 deletion src/generator/config/subexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6af2c56

Please sign in to comment.