Xray-core
Xray-core copied to clipboard
freedom出站时,B站部分图片无法加载
访问部分B站图片会无法加载,哪些不能会报错似乎是随机的。过段时间后可能全部正常了,也可能换了一批图片无法加载。 而且只有B站有这个问题
比如https://i0.hdslb.com/bfs/archive/2706c40aafea50bbfb05fdbef513b2dc787961b5.jpg@336w_190h_1c.webp
走freedom协议时会报错ERR_SSL_VERSION_OR_CIPHER_MISMATCH
而走代理反而正常
报错信息

用Python requests访问的报错:
SSLError: HTTPSConnectionPool(host='i0.hdslb.com', port=443): Max retries exceeded with url: /bfs/archive/2706c40aafea50bbfb05fdbef513b2dc787961b5.jpg@336w_190h_1c.webp (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1131)')))
如果需要的话我可以再抓段流量
版本信息:
Xray 1.4.5 (Xray, Penetrates Everything.) Custom (go1.17.1 linux/amd64)
A unified platform for anti-censorship.
相关配置片段:
{
"inbounds": [
{
"tag": "dr_in",
"listen": "0.0.0.0",
"port": 51423,
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"inboundTag": [
"dr_in"
],
"outboundTag": "dr_out"
}
],
"outbounds": [
{
"tag": "dr_out",
"protocol": "freedom",
"settings": {},
"streamSettings": {
"udp": true
}
}
]
}
访问日志片段
2021/10/04 00:16:08 [Info] [117041995] proxy/socks: TCP Connect request to tcp:i0.hdslb.com:443
2021/10/04 00:16:08 [Info] [117041995] app/dispatcher: taking detour [dr_out] for [tcp:i0.hdslb.com:443]
2021/10/04 00:16:08 [Info] [117041995] proxy/freedom: opening connection to tcp:i0.hdslb.com:443
2021/10/04 00:16:08 [Info] [117041995] transport/internet/tcp: dialing TCP to tcp:i0.hdslb.com:443
2021/10/04 00:16:08 tcp:192.168.9.22:54588 accepted tcp:i0.hdslb.com:443 [dr_in -> dr_out]
2021/10/04 00:16:08 [Info] [230146831] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled
2021/10/04 00:16:08 [Info] [559446909] proxy/socks: TCP Connect request to tcp:i2.hdslb.com:443
2021/10/04 00:16:08 [Info] [559446909] app/dispatcher: taking detour [dr_out] for [tcp:i2.hdslb.com:443]
2021/10/04 00:16:08 [Info] [559446909] proxy/freedom: opening connection to tcp:i2.hdslb.com:443
2021/10/04 00:16:08 tcp:192.168.9.22:59061 accepted tcp:i2.hdslb.com:443 [dr_in -> dr_out]
2021/10/04 00:16:08 [Info] [559446909] transport/internet/tcp: dialing TCP to tcp:i2.hdslb.com:443
2021/10/04 00:16:08 [Info] [2445679213] proxy/dokodemo: received request for 192.168.9.22:59062
需要 routing 完整配置
需要
routing完整配置
routing.json
{
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"domain": [
"geolocation-!cn"
],
"inboundTag": [
"stp_in",
"tp_in"
],
"outboundTag": "clash_out"
},
{
"type": "field",
"inboundTag": [
"dr_in"
],
"outboundTag": "dr_out"
},
{
"type": "field",
"domain": [
"geosite:cn"
],
"inboundTag": [
"stp_in",
"tp_in"
],
"outboundTag": "dr_out"
},
{
"type": "field",
"ip": [
"geoip:cn"
],
"inboundTag": [
"stp_in",
"tp_in"
],
"outboundTag": "dr_out"
},
{
"type": "field",
"inboundTag": [
"stp_in",
"tp_in",
"fp_in"
],
"outboundTag": "clash_out"
}
],
"balancers": []
}
}
outbounds.json
{
"outbounds": [
{
"tag": "dr_out",
"protocol": "freedom",
"settings": {},
"streamSettings": {
"udp": true
}
},
{
"tag": "clash_out",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 51420,
"level": 0
}
]
},
"streamSettings": {
"udp": true
}
}
]
}
据文档:https://xtls.github.io/config/transport.html streamSettings 里 没有 "udp": true。
尝试 修改 "tag": "dr_out" 为
{
"tag": "dr_out",
"protocol": "freedom"
}
据文档:https://xtls.github.io/config/transport.html
streamSettings里 没有"udp": true。 尝试 修改"tag": "dr_out"为{ "tag": "dr_out", "protocol": "freedom" }
改完之后问题依然存在