cary-sas / v2ray_bin

梅林380 固件的魔改科学上网插件
587 stars 129 forks source link

V2ray链式转发找不到服务器IP #57

Closed luohaohaha closed 1 year ago

luohaohaha commented 1 year ago

走的是自定义json的方式 { "outbounds": [{ "protocol": "vmess", "settings": { "vnext": [{ "address": "1.1.1.1", "port": 8888, "users": [{ "alterId": 64, "id": "b12614c5-5ca4-4eba-a215-c61d642116ce" }] }] }, "proxySettings": { "tag": "transit" } }, { "protocol": "shadowsocks", "settings": { "servers": [{ "address": "2.2.2.2", "method": "aes-256-cfb", "ota": false, "password": "password", "port": 1024 }] }, "tag": "transit" }] }

-----日志-----

【2023年02月05日 11:51:48】: ======================= 梅林固件 - 【科学上网】 ======================== 【2023年02月05日 11:51:48】: 【2023年02月05日 11:51:48】: ------------------------- 启动【科学上网】 ----------------------------- 【2023年02月05日 11:51:49】: 删除ss相关的名单配置文件. 【2023年02月05日 11:51:49】: 重启dnsmasq服务... 【2023年02月05日 11:51:50】: 清除iptables规则和ipset... 【2023年02月05日 11:51:52】: 创建ipset名单 【2023年02月05日 11:51:52】: 自动判断使用国内优先模式,不加载cdn.conf 【2023年02月05日 11:51:52】: 创建gfwlist的软连接到/jffs/etc/dnsmasq.d/文件夹. 【2023年02月05日 11:51:53】: 使用自定义的v2ray json配置文件... 【2023年02月05日 11:51:53】: 解析V2Ray配置文件... jq: invalid JSON text passed to --argjson Use jq --help for help with command-line options, or see the jq manpage, or online docs at https://stedolan.github.io/jq 【2023年02月05日 11:51:53】: V2Ray配置文件写入成功到/koolshare/ss/v2ray.json 【2023年02月05日 11:51:53】: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 【2023年02月05日 11:51:53】: + 没有检测到你的服务器地址,如果你确定你的配置是正确的 + 【2023年02月05日 11:51:53】: + 请自行将服务器的ip地址填入【IP/CIDR】黑名单中,以确保正常使用 + 【2023年02月05日 11:51:53】: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 【2023年02月05日 11:51:53】: 测试V2Ray配置文件..... panic: infra/conf/serial: failed to read config file > EOF

goroutine 1 [running]: github.com/v2fly/v2ray-core/v4/common.Must(...) github.com/v2fly/v2ray-core/v4/common/common.go:27 github.com/v2fly/v2ray-core/v4/main/jsonem.init.0.func1({0x8db528, 0x140da40}) github.com/v2fly/v2ray-core/v4/main/jsonem/jsonem.go:27 +0x37c github.com/v2fly/v2ray-core/v4.LoadConfig({0x9c2add, 0x4}, {0xbeb05162, 0x18}, {0x8db528, 0x140da40}) github.com/v2fly/v2ray-core/v4/config.go:68 +0x23c main.startV2Ray() github.com/v2fly/v2ray-core/v4/main/main.go:109 +0x118 main.main() github.com/v2fly/v2ray-core/v4/main/main.go:138 +0x94 【2023年02月05日 11:51:56】: V2Ray/Xray配置文件没有通过测试,请检查设置!!! 【2023年02月05日 11:51:56】: 插件将在5秒后自动关闭!! 【2023年02月05日 11:51:57】: 5 【2023年02月05日 11:51:58】: 4 【2023年02月05日 11:51:59】: 3 【2023年02月05日 11:52:00】: 2 【2023年02月05日 11:52:01】: 1 【2023年02月05日 11:52:02】: 0 【2023年02月05日 11:52:06】: 插件已关闭!! 【2023年02月05日 11:52:06】: ======================= 梅林固件 - 【科学上网】 ========================

cary-sas commented 1 year ago

我能告诉你的是从插件角度,如果要避免这样的jq error,你需要改"outbounds" 为 "outbound", 然后 v2ray 能不能跑这样的json,我就没法帮你了。