Skip to content

Commit

Permalink
remove: host from headers in ws for v2ray-json format (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMohammad20000 authored Jan 1, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ff66326 commit 14c64ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/subscription/v2ray.py
Original file line number Diff line number Diff line change
@@ -570,7 +570,7 @@ def ws_config(self, path: str = "", host: str = "", random_user_agent: bool = Fa
if path:
wsSettings["path"] = path
if host:
wsSettings["headers"]["Host"] = host
wsSettings["host"] = host
if random_user_agent:
wsSettings["headers"]["User-Agent"] = choice(self.user_agent_list)
if heartbeatPeriod:

0 comments on commit 14c64ac

Please sign in to comment.