Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Allow to inject custom validator in VLESS controller

Open torikki-tou opened this issue 1 year ago • 6 comments

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.

torikki-tou avatar Jun 17 '24 16:06 torikki-tou

虽然没看代码但还没看懂要干什么 解释一下

RPRX avatar Jun 18 '24 05:06 RPRX

大概是允许自己定义vless的鉴权 这里只做了修改定义了接口不过没弄具体的配置方式 方便机场之类的服务 吧

Fangliding avatar Jun 18 '24 05:06 Fangliding

I do not know chinese so i may misunderstand you, anyways i just updated description, i hope it will answer your question

torikki-tou avatar Jun 18 '24 21:06 torikki-tou

似乎可以

yuhan6665 avatar Jun 19 '24 15:06 yuhan6665

~~I will merge to main later if no further comments~~ Scheduled for v1.9.0 as discussed

yuhan6665 avatar Jun 23 '24 16:06 yuhan6665

better leave some comments if it's for other devs

Fangliding avatar Jun 24 '24 15:06 Fangliding

@torikki-tou sorry for the delay, can you help with resolve the conflict?

yuhan6665 avatar Sep 12 '24 14:09 yuhan6665

@yuhan6665 done

torikki-tou avatar Sep 12 '24 20:09 torikki-tou

Thanks!

yuhan6665 avatar Sep 13 '24 14:09 yuhan6665