Comments (7)
两点:
- 不支持vless链接,我也没找到 vless 链接的规范。
- vless以外的节点应能正常使用,若不能,是bug
from sing-box.
两点:
- 不支持vless链接,我也没找到 vless 链接的规范。
- vless以外的节点应能正常使用,若不能,是bug
感谢解答,实际上也并不是一定要用 vless 节点,奇怪的是无论排除不排除 vless, trojan 节点都无法使用。
把日志调整到 trace 级别以后点击测试按扭也只有一堆很笼统的错误提示
+0800 2023-09-12 17:08:42 DEBUG [1605505826 15.0s] inbound/tun[0]: connection closed: upload: read udp “IP”:3478: i/o timeout | upstream: context canceled | download: read udp [::]:56332: use of closed network connection
trojan 节点解析看起来也一切正常 (随便过滤的一个节点域名获取的上下文相关日志)
+0800 2023-09-12 17:09:43 INFO provider/trojan[sub1 节点名]: outbound connection to www.gstatic.com:80
+0800 2023-09-12 17:09:43 DEBUG dns: lookup domain “DOMAIN”
+0800 2023-09-12 17:09:48 DEBUG dns: exchanged “DOMAIN” NOERROR 42
+0800 2023-09-12 17:09:48 DEBUG dns: exchanged ”DOMAIN“ A ”DOMAIN“. 42 IN A ”IP“
+0800 2023-09-12 17:09:48 DEBUG dns: exchanged “DOMAIN” OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x002a, udp: 4096
+0800 2023-09-12 17:09:48 DEBUG dns: match[7] outbound=any => localDns
+0800 2023-09-12 17:09:49 DEBUG dns: lookup succeed for “DOMAIN”: ”IP“
如果无法通过本项目解决这个问题,请关闭 issue。无论如何,都非常感谢这个项目提供的便利
from sing-box.
yacd 里有相应节点就说明加载成功了。若节点不能用
BASE64 转换后节点配置里,找一个链接,执行命令sing-box ping "<link>"
,看能不能通。
from sing-box.
非常感谢,sing-box ping "<link>"
的结果如下,初步判断应该是机场配置有问题
{
"type": "trojan",
"tag": "节点名",
"server": "DOMAIN",
"server_port": 443,
"password": "UUID",
"tls": {
"enabled": true,
"server_name": "SNI"
}
}
sing-box ping (version unknown)
Ping http://www.google.com/gen_204: seq=1 err remote error: tls: unrecognized name
Ping http://www.google.com/gen_204: seq=2 err remote error: tls: unrecognized name
Ping http://www.google.com/gen_204: seq=3 err remote error: tls: unrecognized name
Ping http://www.google.com/gen_204: seq=4 err remote error: tls: unrecognized name
但我尝试了一下,把这个节点手动添加到 config.json 文件里,yacd 点击测试的时候这个节点没有结果,但却是正常可用的。
trojan://UUID@DOMAIN:443?allowInsecure=0&peer=PEER&sni=SNI#节点名
{
"tag": "节点名",
"type": "trojan",
"server": "DOMAIN",
"server_port": 443,
"password": "UUID",
"tls": {
"enabled": true,
"insecure": false,
"disable_sni": false,
"server_name": "SNI",
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
}
}
直接选择订阅中的相同节点,依旧不可用
在 json 中我没有添加 peer
(主要不知道在哪里添加),但另一可正常使用的机场链接中包含 peer
,可能关系不大
Edit1: 补充运行 sing-box ping "<link>"
时生成的配置
from sing-box.
原因已找到
因为此订阅 server
与 sni
的值不同,在节点链接转换过程中会忽略节点链接中 sni
,在生成的最终配置中直接使用 server
的值,导致节点无法使用
from sing-box.
试下最新的
from sing-box.
已修复,非常感谢
from sing-box.
Related Issues (11)
- 可以增加在outbounds下使用节点过滤字段的功能吗 HOT 3
- 正则匹配错误 HOT 1
- win编译过程 HOT 1
- hello HOT 3
- deleted HOT 1
- can't start core HOT 2
- 编译时的错误信息
- 带有 provider 字段时无法启动 HOT 1
- 我认为这样更直观 HOT 24
- release prebuild binary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sing-box.