From d05abdbb141501c54c020a70aba1e2a4ade74b99 Mon Sep 17 00:00:00 2001 From: Amir Khalife Date: Tue, 26 Dec 2023 11:06:08 +0330 Subject: [PATCH] HIDDIFY_SUB_URL --- agent_v/hiddify/models/models.py | 2 +- config/settings/project.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/agent_v/hiddify/models/models.py b/agent_v/hiddify/models/models.py index 55b0e7b..5d735d3 100644 --- a/agent_v/hiddify/models/models.py +++ b/agent_v/hiddify/models/models.py @@ -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: diff --git a/config/settings/project.py b/config/settings/project.py index 74c8a32..0ae0f5d 100644 --- a/config/settings/project.py +++ b/config/settings/project.py @@ -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")