v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Feature request]: Import Multiple Custom Xray-core Json Configs from Subscription

Open APT-ZERO opened this issue 4 months ago • 5 comments

相关问题

I want to be able to import multiple xray-core configs from my subscription URL to my v2rayN client

描述你希望的解决方案

https://github.com/2dust/v2rayNG/pull/2827

描述你所考虑的替代方案

No response

我确认已查询历史issues

  • [X] 是

APT-ZERO avatar Feb 20 '24 22:02 APT-ZERO

+1

alireza0 avatar Mar 15 '24 19:03 alireza0

2dust is not a fan of this idea this can get done only if someone make a good PR

APT-ZERO avatar Mar 15 '24 23:03 APT-ZERO

It is very easy! I will do that ;)

alireza0 avatar Mar 16 '24 08:03 alireza0

@alireza0 Design of Multi Custom Config of v2rayNG is very bad, It's configs are huge af

You can make v2rayN to accept a single custom config, But consider each Socks5 Inbound as a Config (Tag = Config Name) We can use those Tags to Route every Inbound to a different Outbound as we like, or add other rules to Routing of xray

We can set all ports to 0, and v2rayN can change the selected Inbound/Config to socks port from v2rayN settings Or we can ask Xray-core devs to add option to set option for inbounds to listen to no port (by '-1' as port for example)

edit: As using a non-existed tag in Routing makes no problem, so client app can even remove unused Inbounds

No need to HTTP Inbound, But v2rayN can add an HTTP Inbound and Chain it to the selected Socks5 Inbound Using dialerProxy https://xtls.github.io/en/config/transport.html#sockoptobject

APT-ZERO avatar Mar 16 '24 15:03 APT-ZERO

It is now added to support json array of v2ray configs. Also I have added some other standards like remarks in v2ray json and network in routing rules.

Supporting all information you mentioned is related to what is supported in their V2rayConfig Model. We can ask for upgrade by adding these parameters as well.

alireza0 avatar Mar 16 '24 17:03 alireza0

https://github.com/2dust/v2rayN/commit/262466303bb147ec03cdb5c1f15ddb3592716b18

2dust avatar Mar 23 '24 02:03 2dust