Skip to content

Commit 7050d34

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents ac53cb8 + 6af2c56 commit 7050d34

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/config/proxygroup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "def.h"
55

6-
enum ProxyGroupType
6+
enum class ProxyGroupType
77
{
88
Select,
99
URLTest,
@@ -13,7 +13,7 @@ enum ProxyGroupType
1313
SSID
1414
};
1515

16-
enum BalanceStrategy
16+
enum class BalanceStrategy
1717
{
1818
ConsistentHashing,
1919
RoundRobin

src/config/ruleset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "def.h"
55

6-
enum RulesetType
6+
enum class RulesetType
77
{
88
SurgeRuleset,
99
QuantumultX,

src/generator/config/subexport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<Ruleset
15591559
std::string proxies = join(filtered_nodelist, ", ");
15601560

15611561
std::string singlegroup = type + "=" + x.Name + ", " + proxies;
1562-
if(type != "static")
1562+
if(x.Type != ProxyGroupType::Select && x.Type != ProxyGroupType::SSID)
15631563
{
15641564
singlegroup += ", check-interval=" + std::to_string(x.Interval);
15651565
if(x.Tolerance > 0)

0 commit comments

Comments
 (0)