Skip to content

Commit

Permalink
Fix proxy type missing when append_proxy_type is enabled for Quantumu…
Browse files Browse the repository at this point in the history
…lt X configs
  • Loading branch information
tindy2013 committed Dec 2, 2023
1 parent 40b4a94 commit d9ff111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/generator/config/subexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ std::string proxyToQuanX(std::vector<Proxy> &nodes, const std::string &base_conf

void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<RulesetContent> &ruleset_content_array, const ProxyGroupConfigs &extra_proxy_group, extra_settings &ext)
{
std::string type;
std::string proxyStr;
tribool udp, tfo, scv, tls13;
std::vector<Proxy> nodelist;
Expand All @@ -1329,7 +1328,10 @@ void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<Ruleset
for(Proxy &x : nodes)
{
if(ext.append_proxy_type)
{
std::string type = getProxyTypeName(x.Type);
x.Remark = "[" + type + "] " + x.Remark;
}

processRemark(x.Remark, remarks_list);

Expand Down Expand Up @@ -1479,6 +1481,7 @@ void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<Ruleset

for(const ProxyGroupConfig &x : extra_proxy_group)
{
std::string type;
string_array filtered_nodelist;

switch(x.Type)
Expand Down

0 comments on commit d9ff111

Please sign in to comment.