Allow to inject custom validator in VLESS controller#3453
Merged
Allow to inject custom validator in VLESS controller#3453
Conversation
Member
|
虽然没看代码但还没看懂要干什么 解释一下 |
Member
|
大概是允许自己定义vless的鉴权 这里只做了修改定义了接口不过没弄具体的配置方式 方便机场之类的服务 吧 |
Contributor
Author
|
I do not know chinese so i may misunderstand you, anyways i just updated description, i hope it will answer your question |
Member
|
似乎可以 |
Member
|
|
Member
|
better leave some comments if it's for other devs |
b11fcf0 to
7e24239
Compare
Member
|
@torikki-tou sorry for the delay, can you help with resolve the conflict? |
ec21c49 to
89c892a
Compare
Contributor
Author
|
@yuhan6665 done |
Member
|
Thanks! |
leninalive
pushed a commit
to amnezia-vpn/amnezia-xray-core
that referenced
this pull request
Oct 29, 2024
* Make Validator an interface * Move validator creation away from VLESS inbound controller
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
* Make Validator an interface * Move validator creation away from VLESS inbound controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made validator an interface and moved its creation out from VLESS constructor to allow custom validators.
It may be the way towards custom validators in Xray, but more importantly it will help people who imports Xray as a library. For example i wanted to implement custom logging and also store users in key-value DB with long term in-memory cache. With this change it will be possible.