-
Notifications
You must be signed in to change notification settings - Fork 112
Enable flow_enabled for VLESS when inbound encryption is set #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -257,13 +257,18 @@ async def _prepare_subscription_inbound_data( | |||||||||||||||||
|
|
||||||||||||||||||
| # Compute flow_enabled: only for VLESS with specific conditions | ||||||||||||||||||
| header_type = getattr(transport_config, "header_type", "none") | ||||||||||||||||||
| flow_enabled = ( | ||||||||||||||||||
| base_flow_enabled = ( | ||||||||||||||||||
| protocol == "vless" | ||||||||||||||||||
| and tls_value in ("tls", "reality") | ||||||||||||||||||
| and network in ("tcp", "raw", "kcp") | ||||||||||||||||||
| and header_type != "http" | ||||||||||||||||||
| ) | ||||||||||||||||||
|
|
||||||||||||||||||
| # Enable also when inbound vless encryption is enabled (not "none") | ||||||||||||||||||
| flow_enabled = base_flow_enabled or ( | ||||||||||||||||||
| protocol == "vless" and encryption not in (None, "", "none") | ||||||||||||||||||
|
Comment on lines
+267
to
+269
|
||||||||||||||||||
| # Enable also when inbound vless encryption is enabled (not "none") | |
| flow_enabled = base_flow_enabled or ( | |
| protocol == "vless" and encryption not in (None, "", "none") | |
| normalized_encryption = encryption.strip().lower() if isinstance(encryption, str) else encryption | |
| # Enable also when inbound vless encryption is enabled (not "none") | |
| flow_enabled = base_flow_enabled or ( | |
| protocol == "vless" and normalized_encryption not in (None, "", "none") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says flow is computed “only for VLESS with specific conditions”, but
flow_enabledis now also enabled for VLESS when inboundencryptionis set. Please update the comment to reflect the full set of conditions so future readers don’t assumetls_value/transport constraints are still required.