Closed yangtao278080785570121 closed 1 year ago
请贴出完整客户端配置,注意去除隐私信息
{ "log": { "disabled": false, "level": "info", "timestamp": true }, "dns": { "servers": [ { "tag": "dns-direct", "address": "https://223.5.5.5/dns-query", "detour": "direct" }, { "tag": "dns-remote", "address": "https://1.1.1.1/dns-query" }, { "tag": "dns-block", "address": "rcode://success" } ], "rules": [ { "geosite": "cn", "server": "dns-direct" }, { "geosite": "category-ads-all", "server": "dns-block", "disable_cache": true } ], "strategy": "ipv4_only", "final": "dns-remote" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "inet4_address": "172.19.0.1/28", "inet6_address": "xxxxxxxxxxxxx/126", "auto_route": true, "strict_route": true, "exclude_package": [ "com.tencent.mobileqq", "com.tencent.mm", "com.ss.android.article.lite", "com.eg.android.AlipayGphone", "com.alibaba.android.rimet", "cmb.pb", "com.cebbank.mobile.cemb", "com.mipay.wallet", "com.vmos.alhs" ], "stack": "system", "sniff": true, "sniff_override_destination": false, "sniff_timeout": "300ms", "domain_strategy": "ipv4_only" } ], "outbounds": [ { "type": "selector", "tag": "Proxyᵇᵒˣ", "outbounds": [ "Fastestᵃᵘᵗᵒ", "Bwᴶᵃᵖᵃⁿ", "Greenᴶᵃᵖᵃⁿ", "Bw-Wg", "Bw-Trojan" ] }, { "type": "urltest", "tag": "Fastestᵃᵘᵗᵒ", "outbounds": [ "Green-Wg", "Bw-Wg", "Bw-Trojan" ], "url": "https://www.apple.com/library/test/success.html", "interval": "5m0s", "tolerance": 200 }, { "type": "urltest", "tag": "Bwᴶᵃᵖᵃⁿ", "outbounds": [ "Bw-Wg", "Bw-Trojan" ], "url": "https://www.apple.com/library/test/success.html", "interval": "5m0s", "tolerance": 200 }, { "type": "urltest", "tag": "Greenᴶᵃᵖᵃⁿ", "outbounds": [ "Green-Wg" ], "url": "https://www.apple.com/library/test/success.html", "interval": "5m0s", "tolerance": 200 }, { "type": "wireguard", "tag": "Green-Wg",
"server": "xxxxxxxxxxx",
"server_port": 51820,
"local_address": [
"10.252.1.2/24"
],
"private_key": "xxxxxxxxxxxxxxxxxxxxxxx",
"peer_public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"pre_shared_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
{
"type": "wireguard",
"tag": "Bw-Wg",
"server": "xxxxxxxx",
"server_port": 5182,
"local_address": [
"10.8.0.2/24"
],
"private_key": "xxxxxxxxxxxxxxxxx",
"peer_public_key": "xxxxxxxxxxxxxxxxxxxxxx",
"pre_shared_key": "xxxxxxxxxxxxxxxxxxxxx"
},
{
"type": "trojan",
"tag": "Bw-Trojan",
"server": "xxxxxxxx",
"server_port": 443,
"password": "chika", // 与服务端一致
"tls": {
"enabled": true,
"server_name": "",
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
}
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
}
], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geosite": "category-ads-all", "outbound": "block" }, { "geosite": [ "cn", "private" ], "geoip": [ "cn", "private" ], "outbound": "direct" } ], "find_process": true, "final": "Proxyᵇᵒˣ", "auto_detect_interface": true, "override_android_vpn": true }, "experimental": { "clash_api": { "external_controller": "0.0.0.0:9090", "external_ui": "./files/yacd", "cache_file": "./clash.db", "store_selected": true } } }
猜测是yacd面板位置没有正确配置,或者没有成功下载。你可以尝试删除"external_ui": "./files/yacd"
,启用内嵌Yacd-Meta面板:"external_ui_build_in": true
。或者检测你的yacd文件夹是否有内容
"experimental": { "clash_api": { "external_controller": "[::]:9090", "external_ui_build_in": true // 启用内嵌的Yacd-Meta } } 改成这样也是不行
Tags: with_clash_ui,with_proxyprovider,with_quic,with_grpc,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_v2ray_api,with_gvisor,with_provider_loadbalance Revision: ebbe49b1e2bc9e635be38b9427be757f20c8ce37 CGO: enabled
yacd-meta面板的代理选项不显示任何节点信息
请尝试清理浏览器缓存
我尝试过了 没有什么效果 我朋友也编译过这个项目 碰到和我一样的问题
我刚重新编译了一次,在ui的代理页面依然看不到节点,其他页面是正常的。 "experimental": { "clash_api": { "external_controller": "0.0.0.0:9090", // "external_ui": "./yacd", "external_ui_build_in": true, "cache_file": "./clash.db", "store_selected": true } }
由于信息太少,我无法确定是源码问题。我尝试编译最新源码,入站使用Socks,并没有问题。不排除是Tun/路由配置的问题。若有Termux,你可以尝试API是否连通:curl -vv -X GET 'http://127.0.0.1:9090/proxies'
~ $ curl -vv -X GET 'http://127.0.0.1:9090/proxies' Note: Unnecessary use of -X or --request, GET is already inferred.
GET /proxies HTTP/1.1 Host: 127.0.0.1:9090 User-Agent: curl/8.1.1 Accept: /
< HTTP/1.1 200 OK < Vary: Origin < Date: Mon, 29 May 2023 04:59:49 GMT < Content-Length: 2044 < Content-Type: text/plain; charset=utf-8 < {"proxies": {"GLOBAL":{"all":["wireguardᵇᵒˣ","fastestᵃᵘᵗᵒ","Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France","Austria","Russia","Singapore"],"history":[],"name":"GLOBAL","now":"wireguardᵇᵒˣ","type":"Fallback","udp":true},"wireguardᵇᵒˣ":{"type":"Selector","name":"wireguardᵇᵒˣ","udp":true,"history":[],"now":"Chicago","all":["Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France"]},"fastestᵃᵘᵗᵒ":{"type":"URLTest","name":"fastestᵃᵘᵗᵒ","udp":true,"history":[{"time":"2023-05-29T04:59:35.766167102Z","delay":3426}],"now":"India","all":["Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France"]},"Chicago":{"type":"WireGuard","name":"Chicago","udp":true,"history":[]},"Chicagoᵖʳᵒ":{"type":"WireGuard","name":"Chicagoᵖʳᵒ","udp":true,"history":[{"time":"2023-05-29T04:59:35.584599654Z","delay":3246}]},"Germany":{"type":"WireGuard","name":"Germany","udp":true* Connection #0 to host 127.0.0.1 left intact ,"history":[{"time":"2023-05-29T04:59:36.88182856Z","delay":4545}]},"Germanyᵖ²ᵖ":{"type":"WireGuard","name":"Germanyᵖ²ᵖ","udp":true,"history":[{"time":"2023-05-29T04:59:36.206197518Z","delay":3869}]},"Turkey":{"type":"WireGuard","name":"Turkey","udp":true,"history":[]},"India":{"type":"WireGuard","name":"India","udp":true,"history":[{"time":"2023-05-29T04:59:35.766167102Z","delay":3426}]},"Portugal":{"type":"WireGuard","name":"Portugal","udp":true,"history":[{"time":"2023-05-29T04:59:36.764093143Z","delay":4421}]},"France":{"type":"WireGuard","name":"France","udp":true,"history":[]},"Austria":{"type":"WireGuard","name":"Austria","udp":true,"history":[]},"Russia":{"type":"WireGuard","name":"Russia","udp":true,"history":[]},"Singapore":{"type":"WireGuard","name":"Singapore","udp":true,"history":[]},"direct":{"type":"Direct","name":"direct","udp":true,"history":[]},"block":{"type":"Reject","name":"block","udp":true,"history":[]},"dns-out":{"type":"Direct","name":"dns-out","udp":true,"history":[]}
~ $ curl -vv -X GET 'http://127.0.0.1:9090/proxies' Note: Unnecessary use of -X or --request, GET is already inferred.
GET /proxies HTTP/1.1 Host: 127.0.0.1:9090 User-Agent: curl/8.1.1 Accept: /
< HTTP/1.1 200 OK < Vary: Origin < Date: Mon, 29 May 2023 04:59:49 GMT < Content-Length: 2044 < Content-Type: text/plain; charset=utf-8 < {"proxies": {"GLOBAL":{"all":["wireguardᵇᵒˣ","fastestᵃᵘᵗᵒ","Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France","Austria","Russia","Singapore"],"history":[],"name":"GLOBAL","now":"wireguardᵇᵒˣ","type":"Fallback","udp":true},"wireguardᵇᵒˣ":{"type":"Selector","name":"wireguardᵇᵒˣ","udp":true,"history":[],"now":"Chicago","all":["Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France"]},"fastestᵃᵘᵗᵒ":{"type":"URLTest","name":"fastestᵃᵘᵗᵒ","udp":true,"history":[{"time":"2023-05-29T04:59:35.766167102Z","delay":3426}],"now":"India","all":["Chicago","Chicagoᵖʳᵒ","Germany","Germanyᵖ²ᵖ","Turkey","India","Portugal","France"]},"Chicago":{"type":"WireGuard","name":"Chicago","udp":true,"history":[]},"Chicagoᵖʳᵒ":{"type":"WireGuard","name":"Chicagoᵖʳᵒ","udp":true,"history":[{"time":"2023-05-29T04:59:35.584599654Z","delay":3246}]},"Germany":{"type":"WireGuard","name":"Germany","udp":true* Connection #0 to host 127.0.0.1 left intact ,"history":[{"time":"2023-05-29T04:59:36.88182856Z","delay":4545}]},"Germanyᵖ²ᵖ":{"type":"WireGuard","name":"Germanyᵖ²ᵖ","udp":true,"history":[{"time":"2023-05-29T04:59:36.206197518Z","delay":3869}]},"Turkey":{"type":"WireGuard","name":"Turkey","udp":true,"history":[]},"India":{"type":"WireGuard","name":"India","udp":true,"history":[{"time":"2023-05-29T04:59:35.766167102Z","delay":3426}]},"Portugal":{"type":"WireGuard","name":"Portugal","udp":true,"history":[{"time":"2023-05-29T04:59:36.764093143Z","delay":4421}]},"France":{"type":"WireGuard","name":"France","udp":true,"history":[]},"Austria":{"type":"WireGuard","name":"Austria","udp":true,"history":[]},"Russia":{"type":"WireGuard","name":"Russia","udp":true,"history":[]},"Singapore":{"type":"WireGuard","name":"Singapore","udp":true,"history":[]},"direct":{"type":"Direct","name":"direct","udp":true,"history":[]},"block":{"type":"Reject","name":"block","udp":true,"history":[]},"dns-out":{"type":"Direct","name":"dns-out","udp":true,"history":[]}
是否有电脑,尝试打开Chrome,并打开开发者工具-网络,打开yacd,打开代理分页,查看是否有失败请求
[root@yzfs-jenkins-230 ~]# curl -vv -X GET 'http://192.168.1.21:9090/proxies'
GET /proxies HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.21:9090 Accept: /
< HTTP/1.1 200 OK < Vary: Origin < Date: Mon, 29 May 2023 05:25:37 GMT < Content-Length: 1432 < Content-Type: text/plain; charset=utf-8 < {"proxies": {"GLOBAL":{"all":["Proxyᵇᵒˣ","Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Green-Wg","Bw-Wg","Bw-Trojan"],"history":[],"name":"GLOBAL","now":"Proxyᵇᵒˣ","type":"Fallback","udp":true},"Proxyᵇᵒˣ":{"type":"Selector","name":"Proxyᵇᵒˣ","udp":true,"history":[],"now":"Fastestᵃᵘᵗᵒ","all":["Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Bw-Wg","Bw-Trojan"]},"Fastestᵃᵘᵗᵒ":{"type":"URLTest","name":"Fastestᵃᵘᵗᵒ","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}],"now":"Bw-Trojan","all":["Green-Wg","Bw-Wg","Bw-Trojan"]},"Bwᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Bwᴶᵃᵖᵃⁿ","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}],"now":"Bw-Trojan","all":["Bw-Wg","Bw-Trojan"]},"Greenᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Greenᴶᵃᵖᵃⁿ","udp":true,"history":[],"now":"Green-Wg","all":["Green-Wg"]},"Green-Wg":{"type":"WireGuard","name":"Green-Wg","udp":true,"hist* Connection #0 to host 192.168.1.21 left intact ory":[]},"Bw-Wg":{"type":"WireGuard","name":"Bw-Wg","udp":true,"history":[]},"Bw-Trojan":{"type":"Trojan","name":"Bw-Trojan","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}]},"dns-out":{"type":"Direct","name":"dns-out","udp":true,"history":[]},"direct":{"type":"Direct","name":"direct","udp":true,"history":[]},"block":{"type":"Reject","name":"block","udp":true,"history":[]}}}[root@yzfs-jenkins-230 ~]#
Checkout the repo: https://github.com/MetaCubeX/yacd index-60c2bc7c.js:103 Version: 0.3.6 index-60c2bc7c.js:103 This web app is being served cache-first by a service worker VM508:1 Uncaught (in promise) SyntaxError: Unexpected end of JSON input at RD (index-60c2bc7c.js:103:30100) at async Promise.all (:9090/ui/index 1) at async index-60c2bc7c.js:103:30797 RD @ index-60c2bc7c.js:103 Promise.then (async) (anonymous) @ Proxies-1199dea7.js:1 (anonymous) @ Proxies-1199dea7.js:1 Ml @ index-60c2bc7c.js:41 po @ index-60c2bc7c.js:41 xv @ index-60c2bc7c.js:41 or @ index-60c2bc7c.js:39 P2 @ index-60c2bc7c.js:41 dr @ index-60c2bc7c.js:41 S0 @ index-60c2bc7c.js:41 k @ index-60c2bc7c.js:26 ce @ index-60c2bc7c.js:26 VM509:1 Uncaught (in promise) SyntaxError: Unexpected end of JSON input at RD (index-60c2bc7c.js:103:30100) at async Promise.all (:9090/ui/index 1) at async index-60c2bc7c.js:103:30797 RD @ index-60c2bc7c.js:103 Promise.then (async) (anonymous) @ Proxies-1199dea7.js:1 v @ Proxies-1199dea7.js:1
网络中没有失败的请求 在控制台有失败的信息
请尝试curl -vv -X GET 'http://127.0.0.1:9090/providers/proxies'
[root@yzfs-jenkins-230 ~]# curl -vv -X GET 'http://192.168.1.21:9090/proxies'
GET /proxies HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.21:9090 Accept: /
< HTTP/1.1 200 OK < Vary: Origin < Date: Mon, 29 May 2023 05:25:37 GMT < Content-Length: 1432 < Content-Type: text/plain; charset=utf-8 < {"proxies": {"GLOBAL":{"all":["Proxyᵇᵒˣ","Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Green-Wg","Bw-Wg","Bw-Trojan"],"history":[],"name":"GLOBAL","now":"Proxyᵇᵒˣ","type":"Fallback","udp":true},"Proxyᵇᵒˣ":{"type":"Selector","name":"Proxyᵇᵒˣ","udp":true,"history":[],"now":"Fastestᵃᵘᵗᵒ","all":["Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Bw-Wg","Bw-Trojan"]},"Fastestᵃᵘᵗᵒ":{"type":"URLTest","name":"Fastestᵃᵘᵗᵒ","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}],"now":"Bw-Trojan","all":["Green-Wg","Bw-Wg","Bw-Trojan"]},"Bwᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Bwᴶᵃᵖᵃⁿ","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}],"now":"Bw-Trojan","all":["Bw-Wg","Bw-Trojan"]},"Greenᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Greenᴶᵃᵖᵃⁿ","udp":true,"history":[],"now":"Green-Wg","all":["Green-Wg"]},"Green-Wg":{"type":"WireGuard","name":"Green-Wg","udp":true,"hist* Connection #0 to host 192.168.1.21 left intact ory":[]},"Bw-Wg":{"type":"WireGuard","name":"Bw-Wg","udp":true,"history":[]},"Bw-Trojan":{"type":"Trojan","name":"Bw-Trojan","udp":true,"history":[{"time":"2023-05-29T13:16:30.1162067+08:00","delay":265}]},"dns-out":{"type":"Direct","name":"dns-out","udp":true,"history":[]},"direct":{"type":"Direct","name":"direct","udp":true,"history":[]},"block":{"type":"Reject","name":"block","udp":true,"history":[]}}}
请检查浏览器/providers/proxies
请求返回是否为json结构
[root@yzfs-jenkins-230 ~]# curl -vv -X GET 'http://192.168.1.21:9090/providers/proxies'
GET /providers/proxies HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.21:9090 Accept: /
< HTTP/1.1 204 No Content < Vary: Origin < Date: Mon, 29 May 2023 06:00:56 GMT <
源码已更新,请重试
1
我重新拉取了dev-next-yaott分支 并重新进行了编译 还是很以前一样 代理页面没有任何东西
查看浏览器开发者工具--控制台错误,以及请求curl -vv -X GET 'http://192.168.1.21:9090/providers/proxies'
,是否输出json
[root@yzfs-jenkins-230 ~]# curl -vv -X GET 'http://192.168.1.21:9090/providers/proxies'
GET /providers/proxies HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.21:9090 Accept: /
< HTTP/1.1 204 No Content < Vary: Origin < Date: Mon, 29 May 2023 06:42:33 GMT <
GET /proxies HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.21:9090 Accept: /
< HTTP/1.1 200 OK < Vary: Origin < Date: Mon, 29 May 2023 06:42:42 GMT < Content-Length: 1480 < Content-Type: text/plain; charset=utf-8 < {"proxies": {"GLOBAL":{"all":["Proxyᵇᵒˣ","Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Green-Wg","Bw-Wg","Bw-Trojan"],"history":[],"name":"GLOBAL","now":"Proxyᵇᵒˣ","type":"Fallback","udp":true},"Proxyᵇᵒˣ":{"type":"Selector","name":"Proxyᵇᵒˣ","udp":true,"history":[],"now":"Fastestᵃᵘᵗᵒ","all":["Fastestᵃᵘᵗᵒ","Bwᴶᵃᵖᵃⁿ","Greenᴶᵃᵖᵃⁿ","Bw-Wg","Bw-Trojan"]},"Fastestᵃᵘᵗᵒ":{"type":"URLTest","name":"Fastestᵃᵘᵗᵒ","udp":true,"history":[{"time":"2023-05-29T14:42:24.0617157+08:00","delay":861}],"now":"Bw-Wg","all":["Green-Wg","Bw-Wg","Bw-Trojan"]},"Bwᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Bwᴶᵃᵖᵃⁿ","udp":true,"history":[{"time":"2023-05-29T14:42:24.0617157+08:00","delay":861}],"now":"Bw-Wg","all":["Bw-Wg","Bw-Trojan"]},"Greenᴶᵃᵖᵃⁿ":{"type":"URLTest","name":"Greenᴶᵃᵖᵃⁿ","udp":true,"history":[],"now":"Green-Wg","all":["Green-Wg"]},"Green-Wg":{"type":"WireGuard","name":"Green-Wg","udp":true,"history":[]}* Connection #0 to host 192.168.1.21 left intact ,"Bw-Wg":{"type":"WireGuard","name":"Bw-Wg","udp":true,"history":[{"time":"2023-05-29T14:42:24.0617157+08:00","delay":861}]},"Bw-Trojan":{"type":"Trojan","name":"Bw-Trojan","udp":true,"history":[{"time":"2023-05-29T14:42:24.0617157+08:00","delay":861}]},"dns-out":{"type":"Direct","name":"dns-out","udp":true,"history":[]},"direct":{"type":"Direct","name":"direct","udp":true,"history":[]},"block":{"type":"Reject","name":"block","udp":true,"history":[]}}}
Checkout the repo: https://github.com/MetaCubeX/yacd index-60c2bc7c.js:103 Version: 0.3.6 VM19:1 Uncaught (in promise) SyntaxError: Unexpected end of JSON input at RD (index-60c2bc7c.js:103:30100) at async Promise.all (:9090/ui/index 1) at async index-60c2bc7c.js:103:30797 RD @ index-60c2bc7c.js:103 Promise.then (async) (anonymous) @ Proxies-1199dea7.js:1 (anonymous) @ Proxies-1199dea7.js:1 Ml @ index-60c2bc7c.js:41 po @ index-60c2bc7c.js:41 xv @ index-60c2bc7c.js:41 or @ index-60c2bc7c.js:39 P2 @ index-60c2bc7c.js:41 dr @ index-60c2bc7c.js:41 S0 @ index-60c2bc7c.js:41 k @ index-60c2bc7c.js:26 ce @ index-60c2bc7c.js:26 index-60c2bc7c.js:103 This web app is being served cache-first by a service worker index-60c2bc7c.js:103 Content is cached for offline use.
源码已更新,请重试
可以了 代理有内容显示了
控制台有报错 index-60c2bc7c.js:103 GET http://127.0.0.1:9090/providers/proxies 404 (Not Found)
这个错误不用管,因为你没有使用proxy-provider
好的 谢谢大神了 耽误您的时间了
Welcome
Description of the problem
我编译了最新版的dev-next-yaott分支 启用了yacd-meta功能 所有功能选项都没问题 唯独代理选项并没有显示任何内容
编译了好几个版本都没有解决这个问题
Version of sing-box
Server and client configuration file
Server and client log file