2dust / v2rayNG

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

直连性能差 #2079

Closed istomyang closed 1 year ago

istomyang commented 1 year ago

在提出问题前请先自行排除服务器端问题,同时也请通过搜索确认是否有人提出过相同问题。

预期行为

只有代理的规则,能正常分流。

实际行为

直连分流慢,比如访问 www.baidu.com,一直在Loading,而访问google.com就很正常。

直连的响应很慢

复现方法

自定义规则 里只有代理一栏填了,其余栏目是空的。

Screenshot_2023-03-10-17-25-46-012_com v2ray ang

日志信息

通过`adb logcat -s com.v2ray.ang GoLog V2rayConfigUtilGoLog Main`获取日志。请自行删减日志中可能出现的敏感信息。 如果问题可重现,建议先执行`adb logcat -c`清空系统日志再执行上述命令,再操作重现问题。 ``` 在这里粘贴日志 ```

环境信息

MIUI14

额外信息(可选)

{
  "dns": {
    "hosts": {
      "domain:googleapis.cn": "googleapis.com"
    },
    "servers": [
      "1.1.1.1",
      {
        "address": "1.1.1.1",
        "domains": [
          "domain:v2ex.com",
          "domain:v2ray.com",
          "domain:reddit.com",
          "domain:stackoverflow.com",
          "domain:notion.so",
          "domain:amazonaws.com",
          "domain:docker.com",
          "domain:elastic.co",
          "domain:unsplash.com",
          "domain:youtube.com",
          "domain:google.com",
          "domain:googleapis.com",
          "domain:gstatic.com",
          "domain:gcr.io",
          "domain:k8s.io",
          "domain:go.dev",
          "domain:flutter.dev",
          "domain:flutterapp.com",
          "domain:android.com",
          "domain:github.com",
          "domain:github.io",
          "domain:githubapp.com",
          "domain:githubassets.com",
          "domain:githubusercontent.com"
        ],
        "port": 53
      }
    ]
  },
  "fakedns": [
    {
      "ipPool": "198.18.0.0/15",
      "poolSize": 10000
    }
  ],
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 7890,
      "protocol": "socks",
      "settings": {
        "auth": "noauth",
        "udp": true,
        "userLevel": 8
      },
      "sniffing": {
        "destOverride": [
          "http",
          "tls",
          "fakedns"
        ],
        "enabled": true
      },
      "tag": "socks"
    },
    {
      "listen": "127.0.0.1",
      "port": 7890,
      "protocol": "http",
      "settings": {
        "userLevel": 8
      },
      "tag": "http"
    }
  ],
  "log": {
    "loglevel": "none"
  },
  "outbounds": [
    {
      "mux": {
        "concurrency": 8,
        "enabled": false
      },
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "xxxcccccccc",
            "port": 38641,
            "users": [
              {
                "encryption": "none",
                "flow": "",
                "id": "2beeb679-2f85-ab13-6fa6-724088fadbd1",
                "level": 8,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "httpSettings": {
          "host": [
           "xxxxxxxx"
          ],
          "path": "/a7e76084"
        },
        "network": "h2",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "fingerprint": "",
          "serverName": "xxxxxxx"
        }
      },
      "tag": "proxy"
    },
    {
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP"
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "block"
    }
  ],
  "routing": {
    "domainMatcher": "mph",
    "domainStrategy": "AsIs",
    "rules": [
      {
        "ip": [
          "1.1.1.1"
        ],
        "outboundTag": "proxy",
        "port": "53",
        "type": "field"
      },
      {
        "domain": [
          "telegram",
          "twitter",
          "domain:v2ex.com",
          "domain:v2ray.com",
          "domain:reddit.com",
          "domain:stackoverflow.com",
          "domain:notion.so",
          "domain:amazonaws.com",
          "domain:docker.com",
          "domain:elastic.co",
          "domain:unsplash.com",
          "gmail",
          "domain:youtube.com",
          "domain:google.com",
          "domain:googleapis.com",
          "domain:gstatic.com",
          "domain:gcr.io",
          "domain:k8s.io",
          "domain:go.dev",
          "domain:flutter.dev",
          "domain:flutterapp.com",
          "domain:android.com",
          "domain:github.com",
          "domain:github.io",
          "domain:githubapp.com",
          "domain:githubassets.com",
          "domain:githubusercontent.com"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "outboundTag": "direct",
        "port": "0-65535",
        "type": "field"
      }
    ]
  }
}
istomyang commented 1 year ago

v2ray手册:当没有匹配到任何规则时,流量默认由主出站协议发出。