Skip to content

Commit

Permalink
HIDDIFY_SUB_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
engAmirEng committed Dec 26, 2023
1 parent 2b43543 commit d05abdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion agent_v/hiddify/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HProfile(models.Model):
hiddi_id = models.PositiveIntegerField(unique=True)

def get_subscriptions_url(self, platform: Platform):
base_url = f"{settings.HIDDIFY_URL}/{settings.HIDDIFY_SECRET}/{self.hiddi_uuid}"
base_url = f"{settings.HIDDIFY_SUB_URL}/{settings.HIDDIFY_SECRET}/{self.hiddi_uuid}"
if platform == Platform.V2RAY_N or platform == Platform.V2RAY_NG:
url = base_url + "/all.txt?name=usersCdn-MKH&asn=MKH&mode=new"
elif platform == Platform.FAIR_VPN:
Expand Down
1 change: 1 addition & 0 deletions config/settings/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# hiddify
# ------------------------------------------------------------------------------
HIDDIFY_URL = env.str("HIDDIFY_URL")
HIDDIFY_SUB_URL = env.str("HIDDIFY_URL")
HIDDIFY_SECRET = env.str("HIDDIFY_SECRET")
HIDDIFY_AGENT_UUID = env.str("HIDDIFY_AGENT_UUID")

Expand Down

0 comments on commit d05abdb

Please sign in to comment.