Skip to content

Android16beta4X64客户端android-arm64-v8a-250430不能正常通信,linux-arm64-v8a则可以. #4676

@wansenlyt

Description

@wansenlyt

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
  • 我搜索了 issues, 没有发现已提出的类似问题。
  • 问题在 Release 最新的版本上可以成功复现

描述

如标题所述,同样的配置,服务端为250430版。当用命令行启动 Xray-android-arm64-v8a-v250430客户端时,启动、日志均正常,去VPS查看则无通信日志,表明Xray-android-arm64-v8a-v250430客户端与服务器未正常通信;替换为 Xray-linux-arm64-v8a-v250430版后,通信正常。

重现方式

Xray-android-arm64-v8a-v250430客户端可正常启动,查询得到启动与访问日志,但服务端无访问日志记录,代表通信并未连接;换Xray-linux-arm64-v8a-v250430客户端后正常。

客户端配置

Details

..................
  "outbounds": [
    {
    "protocol": "vless",
    "tag": "xhttp-reality",
    "settings": {
      "vnext": [
        {
          "address": "xxxxxxxxxxxx.com",
          "port": 443,
          "users": [
            {
              "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
              "level": 0,
              // "flow": "xtls-rprx-vision",
              "encryption": "none"
              }
            ]
          }
        ]
      },
    "streamSettings": {
      "network": "xhttp",
      "xhttpSettings": {
        "mode": "stream-up",
        "path": "xxxxxxxxxxxxxxx",
        "host": "xxxxxxxxxxxx.com",
        "scMaxEachPostBytes": "500000-1000000",
        "scMaxConcurrentPosts": "30-100",
        "scMinPostsIntervalMs": "30-50", // 仅客户端
        "xPaddingBytes": "50-1000",
        "xmux": { // 仅客户端
          "maxConcurrency": 0,
          "maxConnections": 128,
          "cMaxReuseTimes": "16-64",
          "cMaxLifetimeMs": 0
          },
        "downloadSettings": {
          "address": "xxxxxxxxxxxx.com",
          "port": 443,
          "network": "xhttp",
          "xhttpSettings": {
            "mode": "stream-up",
            "path": "xxxxxxxxxxxxxxx",
            "host": "xxxxxxxxxxxx.com",
            "scMaxEachPostBytes": "500000-1000000",
            "scMaxConcurrentPosts": "30-100",
            "scMinPostsIntervalMs": "30-50", // 仅客户端
            "xPaddingBytes": "50-1000",
            "xmux": { // 仅客户端
              "maxConcurrency": 0,
              "maxConnections": 128,
              "cMaxReuseTimes": "16-64",
              "cMaxLifetimeMs": 0
              }
            },
          "security": "reality",
          "realitySettings": {
            "show": false, // 选填,若为 true,输出调试信息
            "serverName": "xxxxxxxxxxxx.com", // 服务端 serverNames 之一
            "fingerprint": "chrome", // 必填,使用 uTLS 库模拟客户端 TLS 指纹
            "shortId": "xxxxxxxxxxxxxxx", // 服务端 shortIds 之一
            "publicKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // 服务端私钥对应的公钥
            "spiderX": "/" // 爬虫初始路径与参数,建议每个客户端不同
            }
          }
        },
      "security": "reality",
      "realitySettings": {
        "show": false, // 选填,若为 true,输出调试信息
        "serverName": "xxxxxxxxxxxx.com", // 服务端 serverNames 之一
        "fingerprint": "chrome", // 必填,使用 uTLS 库模拟客户端 TLS 指纹
        "shortId": "xxxxxxxxxxxxxxxxxx", // 服务端 shortIds 之一
        "publicKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // 服务端私钥对应的公钥
        "spiderX": "/" // 爬虫初始路径与参数,建议每个客户端不同
        },
      "sockopt": {
        "mark": 255,
        "tcpMptcp": true,
        "tcpNoDelay": true,
        "tcpMaxSeg": 1440,
        "tcpFastOpen": 0,
        "tproxy": "off",
        "domainStrategy": "AsIs",
        "tcpKeepAliveInterval": 15,
        "tcpKeepAliveIdle": 10
        }
      }
    },
    {
    "protocol": "blackhole",
    "settings": {
      "response": {
        "type": "http" // "http" | "none":为"none"(默认值)时,直接关闭连接;为"http"时,会发回一个简单的 HTTP 403 数据包,然后关闭连接。
        }
      },
    "tag": "adblock"
    },
    {
    "protocol": "freedom", // 默认直连,只有路由匹配的域名或IP才转发
    "settings": {
      "fragment": {
        "packets": "tlshello",
        "length": "50-200",
        "interval": "10-200" // 单位ms
        },
      "noises":[
        {
          "type":"rand",
          "packet":"50-100",
          "delay":"50-500"
          }
        ]
      },
    "streamSettings": {
      "sockopt": {
        "mark": 255,
        "tcpMptcp": true,
        "tcpNoDelay": true
        }
      },
    "tag": "direct"
    }
  ]
..................

服务端配置

Details

{
  "log": {
    "access": "/var/log/xray/access.log",
    "error": "/var/log/xray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
    "port": 443,
    "protocol": "vless",
    "settings": {
      "clients": [
        {
          "id": "xxxxxxxxxxxxxxxxxx",
          "level": 0
          }
        ],
      "decryption": "none",
      "fallbacks": [
        {
          "dest": "8888",
          "xver": 1
          }
        ]
      },
    "streamSettings": {
      "network": "xhttp",
      "xhttpSettings": {
        "path": "xxxxxxxxxx",
        "host": "xxxxxxxxxx.com",
        "scMaxEachPostBytes": 1000000,
        "scMaxConcurrentPosts": 100,
        "scStreamUpServerSecs": "20-80", 
        "noSSEHeader": false, 
        "xPaddingBytes": "50-1000"
        },
      "security": "reality",
      "realitySettings": {
        "show": false, 
        "target": "8888", 
        "xver": 1, 
        "serverNames": [ 
          "xxxxxxxxxx.com"
          ],
        "privateKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", 
        "minClientVer": "24.11.11", 
        "maxTimeDiff": 180000, 
        "shortIds": [
          "xxxxxxxxxxxxxxxxxx" 
          ]
        },
      "sockopt": {
        "tcpMaxSeg": 1440,
        "tcpFastOpen": true,
        "tproxy": "off",
        "tcpKeepAliveInterval": 15,
        "tcpKeepAliveIdle": 10
        }
      },
    "sniffing": {
      "enabled": true,
      "destOverride": [
        "http",
        "tls",
        "quic"
        ],
      "routeOnly": true
      },
    "tag": "xhttp-reality"
    }
  ],
  "outbounds": [
    {
    "protocol": "freedom", 
    "settings": {},
    "tag": "direct"
    }
  ],
  "dns": {
    "servers": [
      "8.8.8.8",
      "8.8.4.4"
    ]
  },
  "policy": {
    "levels": {
      "0": { 
        "handshake": 15, 
        "connIdle": 300, 
        "uplinkOnly": 0, 
        "downlinkOnly": 0, 
        "bufferSize": 512 
      }
    }
  },
  "routing": {
    "domainStrategy": "AsIs", 
    "domainMatcher": "hybrid",
    "rules": [
      {
      "type": "field",
      "domain": [ 
        "full:www.gstatic.com"
        ],
      "outboundTag": "direct"
      }, 
      ...............
    ]
  }
}

客户端日志

Details

服务端日志

Details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions