yanue / V2rayU

V2rayU,基于v2ray核心的mac版客户端,用于科学上网,使用swift编写,支持trojan,vmess,shadowsocks,socks5等服务协议,支持订阅, 支持二维码,剪贴板导入,手动配置,二维码分享等
https://github.com/yanue/V2rayU
18.62k stars 2.86k forks source link

路由设置无效 #1452

Closed joy717 closed 1 month ago

joy717 commented 1 month ago

提交 Issue 之前请先在issue上搜索是否有相似问题, 看看能不能解决问题 (有太多相同的issue,没精力处理)。 除非特殊情况,请完整填写以下所有问题,不按模板发的 issue 将直接被关闭。

1) 你正在使用的 V2RayU 和 Mac 版本 ? V2RayU 4.2.2 OSX 14.5

2) 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 路由设置里面,选择了“绕过局域网以及中国大陆”,配置自定义的IP(代理IP、直连IP、禁止IP),配置域名策略(比如IPIfNonMatch) 最终config文件里面没有routing相关的设置, routing部分无论如何修改,都是:

  "routing": {
    "domainStrategy": "AsIs",
    "rules": []
  }

3) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

{
  "log": {
    "error": "/Users/vincent/.V2rayU/v2ray-core.log",
    "access": "/Users/vincent/.V2rayU/v2ray-core.log",
    "loglevel": "info"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "protocol": "socks",
      "port": "1080",
      "settings": {
        "auth": "noauth",
        "udp": false
      }
    },
    {
      "listen": "127.0.0.1",
      "settings": {
        "timeout": 360
      },
      "protocol": "http",
      "port": "1087"
    }
  ],
  "outbounds": [
    {
      "mux": {
        "enabled": false,
        "concurrency": 8
      },
      "streamSettings": {
        "tlsSettings": {
          "fingerprint": "chrome",
          "allowInsecure": false,
          "serverName": "xxxx.com"
        },
        "network": "ws",
        "wsSettings": {
          "path": "/",
          "headers": {
            "host": ""
          }
        },
        "security": "tls"
      },
      "settings": {
        "vnext": [
          {
            "address": "xxxx.com",
            "port": 443,
            "users": [
              {
                "alterId": 64,
                "id": "ID",
                "level": 0,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "tag": "proxy",
      "protocol": "vmess"
    },
    {
      "tag": "direct",
      "settings": {
        "userLevel": 0,
        "domainStrategy": "UseIP"
      },
      "protocol": "freedom"
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {
    "servers": [
      {
        "address": "223.5.5.5",
        "port": 53,
        "domains": [
          "geosite:cn"
        ],
        "expectIPs": [
          "geoip:cn"
        ]
      },
      {
        "address": "8.8.8.8",
        "port": 53,
        "domains": [
          "geosite:geolocation-!cn",
          "geosite:speedtest"
        ]
      },
      "1.1.1.1",
      "localhost"
    ]
  },
  "routing": {
    "domainStrategy": "AsIs",
    "rules": []
  }
}

4) 请附上出错时软件输出的错误日志。

    // 在这里附上日志信息

请预览一下你填的内容再提交。

Smilence7 commented 1 month ago

same

Smilence7 commented 1 month ago

我实测3.9版本没有这个问题,目前看来只能先用稳定版了 @joy717

joy717 commented 1 month ago

我实测3.9版本没有这个问题,目前看来只能先用稳定版了 @joy717

我目前不用全局模式,用PAC模式,可以凑合用.

joy717 commented 1 month ago

使用v4.2.3,已经可以正常配置路由了,感谢作者大大 @yanue yan

@Smilence7 更新4.2.3可以使用路由了。不过在“偏好设置”里面的路由设置,是针对每种路由规则的设置,当前想要使用哪种路由设置,需要在右键菜单里面的路由选择。 比如我希望使用“绕过局域网以及中国大陆”,除了要在偏好设置里面设置我需要的规则之外,还需要在右键菜单里面的路由部分,选择“绕过局域网以及中国大陆”

Smilence7 commented 1 month ago

使用v4.2.3,已经可以正常配置路由了,感谢作者大大 @yanue yan

@Smilence7 更新4.2.3可以使用路由了。不过在“偏好设置”里面的路由设置,是针对每种路由规则的设置,当前想要使用哪种路由设置,需要在右键菜单里面的路由选择。 比如我希望使用“绕过局域网以及中国大陆”,除了要在偏好设置里面设置我需要的规则之外,还需要在右键菜单里面的路由部分,选择“绕过局域网以及中国大陆”

okok 辛苦作者大大