-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: implement routing based on incoming SNI #5009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
in port in SNI in protocol in xxxxx.... 哎。。。 |
Could you explain pls? |
I think adding route-id to vless is better idea. you want to allow the users to choose which server to connect to in the end. but users have to change the sni to connect to another server! these two things are completely independent of each other. Anyway, this is also a solution, but i think the correct way is to add route-id to vless. |
If user go change sni, user stopping be user. Sni provide proxy provider |
So I think this PR should be closed. @RPRX is writing vless-encryption. ask him to write route-id for vless too. |
This feature mostly not for end-users, but for providers. I don't think that routing-id is an option, because it will be break changing for all clients and other client cores. |
Anyway, your code is incomplete and does not support Xhttp. |
Could you pls show where we should add it in xhhtp, I can't really find it( |
Xray-core/transport/internet/splithttp/hub.go Lines 286 to 291 in 0cceea7
you need to add So i close this PR, you should add route-id to vless. |
No, i don't think that route-id is good option. It will break all backward compability. |
Hi there,
Currently it is almost impossible to do routing with only one Inbound.
Of course, you can use Dokedomo-Door > Routing > Vless > Routing > Out, but in this case you will still have to have several INCOMING Dokedomo-Doors if I need to route traffic somewhere else.
Simple example:
This small PR adds the ability to define routing rules based on incoming SNI for Trojan+TLS, VLESS+Reality, VLESS+TLS.
With this routing, you will no longer need to create multiple inbounds on different ports if they are completely identical, and will also allow you to leave one single Reality on port 443 and at the same time have full routing capability based on SNI.