Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

XHTTP穿不了七牛云CDN

Open tanxianbo opened this issue 1 year ago • 3 comments

这是客户端配置

{
  "log": {},
  "inbounds": [
    {
      "port": "1080",
      "protocol": "socks",
      "settings": {
        "auth": "noauth",
        "udp": true
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "xxx",
            "port": 80,
            "users": [
              {
                "id": "xxxxxxxxxxx",
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "xhttp",
        "security": "none",
        "xhttpSettings": {
          "path": "/echo",
          "mode": "packet-up",
          "host": "xxxxx"

        }
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [
    ]
  }
}

这是服务端配置

{
  "log": {
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "listen": "0.0.0.0",
      "port": 8085,
      "protocol": "vless",
      "settings": {
        "clients": [
          {
            "id": "xxxxxxxxxxxxxxxxx"
          }
        ],
        "decryption": "none"
      },
      "streamSettings": {
        "network": "xhttp",
        "xhttpSettings": {
          "mode": "packet-up",
          "path": "/echo"
        }
      },
      "sniffing": {
        "enabled": false,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
    ]
  }
}

XHTTP穿不了七牛云CDN ,是我配置不对吗? 七牛云CDN每月有免费10G流量,利用IPV4转IPV6,访问家里NAS,想薅这羊毛。

tanxianbo avatar Sep 08 '25 05:09 tanxianbo

请确保中间盒不会buffer下行流量

Fangliding avatar Sep 08 '25 06:09 Fangliding

请确保中间盒不会buffer下行流量

Image

设置不缓存也是不行

tanxianbo avatar Sep 08 '25 07:09 tanxianbo

1 buffer不是cache 2 issue不处理这种问题 我只是稍微提醒一下

Fangliding avatar Sep 08 '25 07:09 Fangliding