openwrt-passwall2 icon indicating copy to clipboard operation
openwrt-passwall2 copied to clipboard

[Feature Request]:支持 clash api 面板

Open drx1x2 opened this issue 9 months ago • 5 comments

描述你想要的新功能

passwall2 log查看不方便,能否支持clash api面板,就方便多了

描述你想要的解决方案

passwall2 log查看不方便,能否支持clash api面板,就方便多了

描述你考虑过的替代方案

No response

其他信息

No response

drx1x2 avatar May 10 '24 10:05 drx1x2

可以暂时先在/usr/lib/lua/luci/passwall2/util_sing-box.lua 这个文件里手动添加clash api的配置

LeeRemember avatar May 13 '24 08:05 LeeRemember

可以暂时先在/usr/lib/lua/luci/passwall2/util_sing-box.lua 这个文件里手动添加clash api的配置

how to ?

drx1x2 avatar May 14 '24 01:05 drx1x2

可以暂时先在/usr/lib/lua/luci/passwall2/util_sing-box.lua 这个文件里手动添加clash api的配置

how to ? if not experimental then experimental = {} end experimental.clash_api = { external_controller = "127.0.0.1:9090" } 在util_sing-box.lua 文件中的 gen_config 方法里 。把上述代码添加到if inbounds or outbounds then 之前

LeeRemember avatar May 14 '24 02:05 LeeRemember

可以暂时先在/usr/lib/lua/luci/passwall2/util_sing-box.lua 这个文件里手动添加clash api的配置

how to ? if not experimental then experimental = {} end experimental.clash_api = { external_controller = "127.0.0.1:9090" } 在util_sing-box.lua 文件中的 gen_config 方法里 。把上述代码添加到if inbounds or outbounds then 之前

sing-box version 1.8.13

Environment: go1.22.2 linux/arm64 Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api Revision: 742adacce77f5cdb9eeb0efd67e7fbf44c966a12 CGO: disabled

未成功

drx1x2 avatar May 15 '24 01:05 drx1x2

你把你修改的贴出来看看呢

LeeRemember avatar May 15 '24 09:05 LeeRemember

Stale Issue

github-actions[bot] avatar May 26 '24 02:05 github-actions[bot]