Allow to inject custom validator in VLESS controller
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.
虽然没看代码但还没看懂要干什么 解释一下
大概是允许自己定义vless的鉴权 这里只做了修改定义了接口不过没弄具体的配置方式 方便机场之类的服务 吧
I do not know chinese so i may misunderstand you, anyways i just updated description, i hope it will answer your question
似乎可以
~~I will merge to main later if no further comments~~ Scheduled for v1.9.0 as discussed
better leave some comments if it's for other devs
@torikki-tou sorry for the delay, can you help with resolve the conflict?
@yuhan6665 done
Thanks!