Skip to content

Conversation

patterniha
Copy link
Collaborator

@patterniha patterniha changed the title Add Minimum and Maximum Xray-core version to run the config Json config: Add Minimum and Maximum Xray-core version to run Aug 2, 2025
@RPRX RPRX changed the title Json config: Add Minimum and Maximum Xray-core version to run Root config: Add version config (min and max) Aug 3, 2025
@RPRX RPRX merged commit 87fff12 into XTLS:main Aug 3, 2025
39 checks passed
@w0l4i
Copy link

w0l4i commented Aug 3, 2025

#4968 (comment)

this is for client side or server side ?
where to add this ?

@patterniha
Copy link
Collaborator Author

patterniha commented Aug 3, 2025

Root config:

{
  "version": {
    "min": "25.8.3",
    "max": ""
  },
  "log": {},
  "inbounds": [],
  "outbounds": [],
  ...
}

it can be used in both server and client, but its use is to force clients to use specific versions.

@w0l4i
Copy link

w0l4i commented Aug 3, 2025

,
"max": ""

I've tried but it doesn't work well i use older core client like npv tunnel to check is this can prevent client from connecting because of old core version , but it didn't , i tried this code on costume config for client side + on server side too

@w0l4i
Copy link

w0l4i commented Aug 3, 2025

image image client and server side also server core version is the latest version that released today

@patterniha
Copy link
Collaborator Author

This feature added in v25.8.3.
So it doesn't work in older versions.

For older versions you can use new alias
like: direct, tunnel, block(#4968) to force clients use the latest version.

@patterniha patterniha deleted the version branch August 4, 2025 02:37
maoxikun added a commit to maoxikun/Xray-core that referenced this pull request Aug 22, 2025
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.

3 participants