Skip to content

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

Merged
RPRX merged 5 commits intoXTLS:mainfrom
KobeArthurScofield:rm-legacy-config
Sep 9, 2024
Merged

Config: Remove some legacy fields from V2Ray 3.x era#3776
RPRX merged 5 commits intoXTLS:mainfrom
KobeArthurScofield:rm-legacy-config

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
@KobeArthurScofield KobeArthurScofield deleted the rm-legacy-config branch September 15, 2024 06:56
leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
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