Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Update clash2base64.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Dec 4, 2023
1 parent dcc6ca3 commit 0e18f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/clash2base64.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def clash2v2ray(share_link):
ss_info["plugin"] = share_link['plugin']
if share_link.get('plugin') == 'obfs':
ss_info["mode"] = share_link['plugin-opts']['mode']
ss_info["host"] = share_link['plugin-opts']['host']
ss_info["host"] = share_link['plugin-opts'].get('host', '')
url_link = '?plugin=obfs-local%3Bobfs%3D{mode}%3Bobfs-host%3D{host}'.format(**ss_info)
if share_link.get('plugin') == 'v2ray-plugin':
ss_info["obfs"] = share_link['plugin-opts']['mode']
Expand Down

0 comments on commit 0e18f4c

Please sign in to comment.