Skip to content

Commit

Permalink
Only add aead option in QuanX when alterid=0
Browse files Browse the repository at this point in the history
  • Loading branch information
taurusxin committed Sep 3, 2022
1 parent e2287f1 commit bb681e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generator/config/subexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ void proxyToQuanX(std::vector<Proxy> &nodes, INIReader &ini, std::vector<Ruleset
if(method == "auto")
method = "chacha20-ietf-poly1305";
proxyStr = "vmess = " + hostname + ":" + port + ", method=" + method + ", password=" + id;
if (x.AlterId != 0)
proxyStr += ", aead=false";
if(tlssecure && !tls13.is_undef())
proxyStr += ", tls13=" + std::string(tls13 ? "true" : "false");
if(transproto == "ws")
Expand Down

0 comments on commit bb681e2

Please sign in to comment.