Skip to content

Commit

Permalink
fix(splithttp): default value for splithttp
Browse files Browse the repository at this point in the history
  • Loading branch information
M03ED committed Jul 31, 2024
1 parent e7d6756 commit aa664a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/subscription/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def add(self, remark: str, address: str, inbound: dict, settings: dict):
multiMode=multi_mode,
sc_max_each_post_bytes=inbound.get('scMaxEachPostBytes', 1000000),
sc_max_concurrent_posts=inbound.get('scMaxConcurrentPosts', 100),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 10),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 30),
)

elif inbound["protocol"] == "vless":
Expand All @@ -93,7 +93,7 @@ def add(self, remark: str, address: str, inbound: dict, settings: dict):
multiMode=multi_mode,
sc_max_each_post_bytes=inbound.get('scMaxEachPostBytes', 1000000),
sc_max_concurrent_posts=inbound.get('scMaxConcurrentPosts', 100),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 10),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 30),
)

elif inbound["protocol"] == "trojan":
Expand All @@ -119,7 +119,7 @@ def add(self, remark: str, address: str, inbound: dict, settings: dict):
multiMode=multi_mode,
sc_max_each_post_bytes=inbound.get('scMaxEachPostBytes', 1000000),
sc_max_concurrent_posts=inbound.get('scMaxConcurrentPosts', 100),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 10),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 30),
)

elif inbound["protocol"] == "shadowsocks":
Expand Down Expand Up @@ -926,7 +926,7 @@ def add(self, remark: str, address: str, inbound: dict, settings: dict):
random_user_agent=inbound.get('random_user_agent', False),
sc_max_each_post_bytes=inbound.get('scMaxEachPostBytes', 1000000),
sc_max_concurrent_posts=inbound.get('scMaxConcurrentPosts', 100),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 10),
sc_min_posts_interval_ms=inbound.get('scMinPostsIntervalMs', 30),
)

mux_json = json.loads(self.mux_template)
Expand Down

0 comments on commit aa664a2

Please sign in to comment.