Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vless protocol in vmess2json.py #14

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

recolic
Copy link

@recolic recolic commented Jul 26, 2022

This PR does 3 work:

  1. Refine code to use dedicated function for base64 decoding.
  2. Add logic to parse vless link.
  3. Remove embedded DNS server and routing settings, which is confusing.

It solves #13

@recolic
Copy link
Author

recolic commented Jul 26, 2022

Tested with the following testcases:

ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNToxMTExMjIyMkB1czEubmQ6MjU1NTE#REMARK
vless://11111111-1111111111111111111@sg2.mydo.com:443?path=%2Fvideo&security=tls&encryption=none&host=sg2.mydo.com&type=ws&sni=sg2.mydo.com#MY_GREAT_WALL
vmess://ewoidiI6ICIyIiwKInBzIjogIlRFU1RJTkciLAoiYWRkIjogInJ0ZXN0LTEtMS0xLTEuZnJlZW15aXAuY29tIiwKInBvcnQiOiAiNDQzIiwKImlkIjogIjdjMTExMTExMTExMTExMTExMTExMTExMTExMTEiLAoiYWlkIjogIjAiLAoibmV0IjogImgyIiwKInR5cGUiOiAibm9uZSIsCiJob3N0IjogInJ0ZXN0LTEtMS0xLTEuZnJlZW15aXAuY29tIiwKInBhdGgiOiAiL2NkbiIsCiJ0bHMiOiAidGxzIgp9Cg==

All of them looks good.

Recolic K added 2 commits July 26, 2022 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant