Skip to content

Commit

Permalink
fix: subscription url working on >= v2rayNG/1.8.15
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Feb 28, 2024
1 parent 3edeed1 commit e7c27ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def get_subscription_user_info(user: UserResponse) -> dict:
if LooseVersion(version_str) >= LooseVersion("1.8.16"):
conf = generate_subscription(user=user, config_format="v2ray-json", as_base64=False)
return Response(content=conf, media_type="application/json", headers=response_headers)
else:
conf = generate_subscription(user=user, config_format="v2ray", as_base64=True)
return Response(content=conf, media_type="application/json", headers=response_headers)

else:
conf = generate_subscription(user=user, config_format="v2ray", as_base64=True)
Expand Down

0 comments on commit e7c27ae

Please sign in to comment.