2dust / v2rayNG

A V2Ray client for Android, support Xray core and v2fly core
https://1.2345345.xyz
GNU General Public License v3.0
34.27k stars 5.3k forks source link

导入“自定义配置”失败,同样的配置文件在PC版xray-core正常使用 #3354

Closed cnbatch closed 1 month ago

cnbatch commented 1 month ago

预期行为

顺利导入配置文件

实际行为

导入失败

复现方法

同一份配置文件,在xray-core 1.8.8能够正常使用,在v2rayNG也能正常使用,以前v2rayNG旧版本导入成功,用了很久,起码一年了。

然而现在把配置文件内容复制一遍,使用“从剪贴板导入自定义配置”却失败了。使用“从本地导入自定义配置”,仍然失败。

日志信息

W/com.v2ray.ang: Cleared Reference was only reachable from finalizer (only reported once)
E/com.v2ray.ang: Invalid resource ID 0x00000000

环境信息

v1.8.29 (Lib v27, Xray-core v1.8.16)

额外信息(可选)

2dust commented 1 month ago

把配置发出来

cnbatch commented 1 month ago
{
  "log": {
    "loglevel": "none"
  },
  "inbounds": [{
    "port": 10808,
    "protocol": "socks",
    "settings": {
      "udp": true
    }
  },
    {
      "port": 10809,
      "protocol": "http",
      "settings": {
        "userLevel": 8
      },
      "tag": "http"
    }],
  "outbounds": [{
    "protocol": "vmess",
    "settings": {
      "vnext": [{
        "address": "192.168.0.1",
        "port": 30000,
        "users": [{
          "id": "810b7251-ce88-7b5c-9907-3fe0140c1d92"
        }]
      }]
    }
  }]
}
2dust commented 1 month ago

自定义配置中要包含 routing