Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Mar 25, 2024
1 parent 1922474 commit 8447bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsers/clash2base64.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def clash2v2ray(share_link):
else:
trojan_info["path"] = ''
trojan_info["host"] = trojan_info["sni"]
link = "trojan://{password}@{server}:{port}?allowInsecure={allowInsecure}&sni={sni}&skip_cert_verify={skip_cert_verify}&type={type}&host={host}&path={path}&fp={fp}&alpn={alpn}".format(**trojan_info)
link = "trojan://{password}@{server}:{port}?sni={sni}&skip_cert_verify={skip_cert_verify}&type={type}&host={host}&path={path}&fp={fp}&alpn={alpn}".format(**trojan_info)
elif trojan_info['type'] == 'tcp':
link = "trojan://{password}@{server}:{port}?allowInsecure={allowInsecure}&sni={sni}&skip_cert_verify={skip_cert_verify}&type={type}&fp={fp}&alpn={alpn}".format(**trojan_info)
link = "trojan://{password}@{server}:{port}?sni={sni}&skip_cert_verify={skip_cert_verify}&type={type}&fp={fp}&alpn={alpn}".format(**trojan_info)
if share_link.get('smux',{}).get('enabled', '') == True:
trojan_info["protocol"] = share_link['smux']['protocol']
trojan_info["max_connections"] = share_link['smux'].get('max-connections','')
Expand Down

0 comments on commit 8447bef

Please sign in to comment.