3Kmfi6HP / EDtunnel

Use Cloudflare pages and worker serverless to implement VLESS protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

自定义pages _route.json时,v2raN ws-path可正常使用,sing-box ws-path设置无效

zypluckyphoenix opened this issue · comments

  • 当使用这个 _route.json 时,sing-box ws-path设置无效:
    {
       "version": 1,
       "include": [
          "/hello"
       ],
       "exclude": [
          "/",
          "/js/*",
          "/css/*",
          "/assets/*",
          "/favicon.ico"
       ]
    }
  • 但是使用这个 _route.json 时,sing-box可正常使用:
    {
       "version": 1,
       "include": [
          "/*"
       ],
       "exclude": [
          "/",
          "/js/*",
          "/css/*",
          "/assets/*",
          "/favicon.ico"
       ]
    }
    {
      "type": "vless",
      "tag": "使用教程/guide https://t.me/edtunnel/7462 bing",
      "server": "8.217.147.230",
      "server_port": 2096,
      "uuid": "d342d11e-d424-4583-b36e-524ab1f0afa4",
      "transport": {
        "path": "/hello?ed=2048",
        "type": "ws",
        "headers": {
          "Host": "xxx.eu.org"
        }
      },
      "tls": {
        "enabled": true,
        "server_name": "xxx.eu.org",
        "insecure": true
      },
      "tcp_fast_open": false
    }
  • sing-box测速截图:

image

可以看到 https://sub.xf.free.hr/auto 的节点正常,但是我个人搭建的节点联不通。

我配置_route.json的初衷就是:指定url.pathname走代理,其它url.pathname全部访问pages静态资源,或者通过_redirects重定向到其他站点(例如www.bing.com),这样子可以增强伪装、减少风险、降低10万免费次数的消耗。

请问,我该如何配置以实现上述目的?