Skip to content
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

Config: Remove some legacy fields from V2Ray 3.x era #3776

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

KobeArthurScofield
Copy link
Contributor

@KobeArthurScofield KobeArthurScofield commented Sep 8, 2024

Dug out two undocumented config items from the code, and the archaeological analysis told they're from V2Ray-core 3.x (around 2018), and were brought into Xray-core since day one.

The removed config items are:

  • features under VMess inbound config: This config item only contains a detour config which act as the same as detour under VMess inbound config, and should be deprecated as only the detour is documented.
  • domainOverride under inbound config: This is the one really deprecated as the sniffing config was introduced in V2Ray 3.x and domainOverride got quickly deprecated. When this is existed in the config it just turn on the sniffing config now, but it won't turn on QUIC sniffer and FakeDNS sniffer.

Why they were here was just because in V2Ray-core each version of config format can be used for one main version, and can be used with the next main version for compatibility and migration, but V2Ray-core 4.x lasts unpredictably long and Xray-core inherited the config format from V2Ray-core 4.x, these old config codes just sitting there and being forgotten, like #2841 and #3163 and #3769.

Luckily there seems no more hidden undocumented configs that were deprecated and should be removed now. Those 3.x config items seems no need to be compatible for now in 2024 as 4.x format has spread for a very long time.

@RPRX RPRX changed the title Remove legacy configs from V2Ray 3.x era Config: Remove legacy fields from V2Ray 3.x era Sep 9, 2024
@RPRX RPRX changed the title Config: Remove legacy fields from V2Ray 3.x era Config: Remove some legacy fields from V2Ray 3.x era Sep 9, 2024
@RPRX RPRX merged commit f04cb0b into XTLS:main Sep 9, 2024
36 checks passed
@KobeArthurScofield KobeArthurScofield deleted the rm-legacy-config branch September 15, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants