Skip to content

Conversation

@DHR60
Copy link
Contributor

@DHR60 DHR60 commented Jul 14, 2025

基于 Migrate to sing-box 1.12 support
请在合并前先合并 Migrate to sing-box 1.12 support

自定义配置模板,v2rayN 仅会 append oubound 相关设置

image image

供高级用户和有特殊需求的用户使用,v2rayN 将尽可能避免覆写用户已精心设计好的配置模板

还可以实现多入站,节点分流,部分 sing-box 分支提供的 sniff_override_destination 路由动作,xray loopback 重入站避免二次 DNS 请求等高级功能

step 2, 3, 4 想实现与路由规则集列表的绑定,变量替换以及可从 url 导入等

@DHR60 DHR60 force-pushed the custom_config branch 5 times, most recently from 317a602 to bf46265 Compare July 26, 2025 09:11
@DHR60 DHR60 force-pushed the custom_config branch 8 times, most recently from f58be8a to 9886c52 Compare July 31, 2025 03:01
@DHR60 DHR60 force-pushed the custom_config branch 3 times, most recently from aba8164 to cf503da Compare August 10, 2025 03:28
@DHR60 DHR60 marked this pull request as ready for review August 10, 2025 03:38
@2dust
Copy link
Owner

2dust commented Aug 10, 2025

增加了此功能后,要写下 wiki ,把目前配置文件的产生逻辑流程描述下了

@2dust
Copy link
Owner

2dust commented Aug 10, 2025

另外一个问题是,这个功能如果叫自定义配置,如果不了解的话很可能会和原有的自定义配置关联在一起。
改名成 完整配置模板设置,然后在设置页面的顶部增加一些说明,比如

此功能供高级用户和有特殊需求的用户使用。 启用此功能后,将忽略 Core 的基础设置,DNS 设置 ,路由设置;仅会在设置的模板中添加出站配置... ... 你需要保证系统代理的端口和流量统计等功能的配置正确,一切都由你来设置。

@DHR60
Copy link
Contributor Author

DHR60 commented Aug 10, 2025

增加了此功能后,要写下 wiki ,把目前配置文件的产生逻辑流程描述下了

新加一个页面吗?下面的几个选项应该也要说明,并且后期我想做变量替换以便 url 分享导入,类似 "port": ${LocalPort} 这种,${LocalPort} 可被替换为用户设置的值,虽然可能没几个人用。然后页面顶部放上这个 wiki 的链接

@2dust
Copy link
Owner

2dust commented Aug 10, 2025

先在应用的设置位置写点简单的说明,然后做增加一个链接吧。
单独或在原有的页面都行,都可以跳转到指定位置。

@DHR60
Copy link
Contributor Author

DHR60 commented Aug 10, 2025

wiki 好像不能 pr,git am patch 或者从 https://github.com/DHR60/v2rayN.wiki.git cherry-pick 吧

patch.zip

包含四个 patch

SHA1: DCDF46DEC6EEF0433FEA0E6381E504EA96E2A6E8

@DHR60 DHR60 changed the title Custom config Full Config Template Aug 11, 2025
@2dust 2dust merged commit b5e0a77 into 2dust:master Aug 11, 2025
@DHR60 DHR60 deleted the custom_config branch August 11, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants