Cenmrev / V2RayX

GUI for v2ray-core on macOS
GNU General Public License v3.0
7.62k stars 1.14k forks source link

Global Mode安好,但是Manual Mode无法使用 #253

Open isxylands opened 5 years ago

isxylands commented 5 years ago

请回答下列问题。不按模板发的 issue 将直接被关闭。

0) 如果你没有遇到任何错误和不正常,请在此处回答你想发表的内容:

1) 你正在使用哪个版本的 V2RayX,你的 macOS 系统版本?

V2RayX 1.5.1 (1278) V2Ray为V2RayX自带的1.5.1 (Po) 20190212 macOS Mojave 10.14.4 (18E226)

2) 如果你在操作 V2RayX 的时候遇到程序崩溃/无反应,请描述你的操作,之后在命令行(终端.app)里运行/Applications/V2RayX.app/Contents/MacOS/V2RayX,重复上述操作直至软件崩溃,把终端里的输出贴到下面指定的地方。

在这里贴上终端的输出

没有崩溃/无反应情况

3) 如果 V2RayX 没有发生崩溃,但是有一些不正常行为,比如上次勾选了 mux,再次打开,mux 的钩没有了。请描述你遇到的不正常行为。

4) 如果 V2RayX 一切正常,但网络依然不如你所预料,请首先把 log level 切换到 debug,再次访问你想访问的网站。然后点击 V2RayX 的 view current config.json,将弹出的浏览器内的配置文件粘贴到下面指定的地方,但是隐藏掉ip/端口/id等信息。

{
  "dns" : {
    "servers" : [
      "localhost"
    ]
  },
  "inbounds" : [
    {
      "listen" : "127.0.0.1",
      "port" : 1081,
      "protocol" : "socks",
      "tag" : "socksinbound",
      "settings" : {
        "auth" : "noauth",
        "udp" : false,
        "ip" : "127.0.0.1"
      }
    },
    {
      "listen" : "127.0.0.1",
      "port" : 8001,
      "protocol" : "http",
      "tag" : "httpinbound",
      "settings" : {
        "timeout" : 0
      }
    }
  ],
  "outbounds" : [
    {
      "tag" : "direct",
      "protocol" : "freedom",
      "settings" : {

      }
    },
    {
      "sendThrough" : "0.0.0.0",
      "mux" : {
        "enabled" : false,
        "concurrency" : 8
      },
      "protocol" : "vmess",
      "settings" : {
        "vnext" : [
          {
            "address" : "xxx",
            "users" : [
              {
                "id" : "xxx",
                "alterId" : 64,
                "security" : "auto",
                "level" : 1
              }
            ],
            "port" : xxx
          }
        ]
      },
      "tag" : "vm2",
      "streamSettings" : {
        "sockopt" : {

        },
        "quicSettings" : {
          "key" : "",
          "security" : "none",
          "header" : {
            "type" : "none"
          }
        },
        "tlsSettings" : {
          "allowInsecure" : false,
          "alpn" : [
            "http\/1.1"
          ],
          "serverName" : "server.cc",
          "allowInsecureCiphers" : false
        },
        "wsSettings" : {
          "path" : "",
          "headers" : {

          }
        },
        "httpSettings" : {
          "path" : "",
          "host" : [
            ""
          ]
        },
        "tcpSettings" : {
          "header" : {
            "type" : "none"
          }
        },
        "kcpSettings" : {
          "header" : {
            "type" : "none"
          },
          "mtu" : 1350,
          "congestion" : false,
          "tti" : 20,
          "uplinkCapacity" : 5,
          "writeBufferSize" : 1,
          "readBufferSize" : 1,
          "downlinkCapacity" : 20
        },
        "security" : "none",
        "network" : "tcp"
      }
    }
  ],
  "routing" : {
    "name" : "bypasscn_private_apple",
    "domainStrategy" : "IPIfNonMatch",
    "rules" : [
      {
        "type" : "field",
        "outboundTag" : "direct",
        "domain" : [
          "localhost",
          "domain:me.com",
          "domain:lookup-api.apple.com",
          "domain:icloud-content.com",
          "domain:icloud.com",
          "domain:cdn-apple.com",
          "domain:apple-cloudkit.com",
          "domain:apple.com",
          "domain:apple.co",
          "domain:aaplimg.com",
          "domain:guzzoni.apple.com",
          "geosite:cn"
        ]
      },
      {
        "type" : "field",
        "outboundTag" : "direct",
        "ip" : [
          "geoip:private",
          "geoip:cn"
        ]
      },
      {
        "type" : "field",
        "outboundTag" : "vm2",
        "port" : "0-65535"
      }
    ]
  },
  "log" : {
    "error" : "\/var\/folders\/d2\/_p5s90rj44sc31n565sl5b2c0000gn\/T\/cenmrev.v2rayx.log\/error.log",
    "loglevel" : "warning",
    "access" : "\/var\/folders\/d2\/_p5s90rj44sc31n565sl5b2c0000gn\/T\/cenmrev.v2rayx.log\/access.log"
  }
}

然后点击 V2RayX 的view log,把 error.log 中的输出贴到下方:

在这里贴上 error.log

无输出。仅在Global模式下,error.log和access.log有输出,网站也能正常打开;切换到Manual模式下,这两个日志文件就都没有输出了,网站也打不开,以Chrome浏览器为例,会显示“无法访问此网站,xxx.com响应时间过长”。

5) 其他你认为可以帮助开发者和你一起解决问题的信息:

1、macOS系统偏好设置里的“自动代理配置”用的proxy.pac文件见附件 [proxy.pac.zip]https://github.com/Cenmrev/V2RayX/files/3145374/proxy.pac.zip)

2、之所以想使用Manual Mode,是因为Global模式下,某些国内网站(如aliyun.com、mgta.trs.cn等)虽然能打开,但是速度实在太慢。之前一直是用Manual模式 + macOS系统的PAC设置的,不存在这种问题,很完美。而3月底由于其他原因,重新配了台VPS后,就变成这样了,很痛苦。

3、从命令行测试,发现貌似Socks5代理不能用了,HTTP代理还能用,测试命令:

curl -v --connect-timeout 5 --socks5 127.0.0.1:1081 -I https://www.google.com/
curl -v --connect-timeout 5 -x socks5h://127.0.0.1:1081 -I https://www.google.com/

以上都无法访问到;

curl -v --connect-timeout 5 -x 127.0.0.1:8001 -I https://www.google.com/

这个则OK。

zmj1368 commented 5 years ago

同样的问题,这个问题困扰了我好久了,Global Mode可以用,PAC和Manual都不行 我用的mac系统为 macOS Mojave 10.14.4 我的v2rayx版本为1.5.1 情况皆同上述,望早日解决

kofeisen commented 5 years ago

同样的问题,这个问题困扰了我好久了,Global Mode可以用,PAC和Manual都不行 我用的mac系统为 macOS Mojave 10.14.4 我的v2rayx版本为1.5.1 情况皆同上述,望早日解决

切回131版本,还有v2ray rule可以用。现在这个版本PAC和Manual都不行

Edger commented 5 years ago

同样的问题,这个问题困扰了我好久了,Global Mode可以用,PAC和Manual都不行 我用的mac系统为 macOS Mojave 10.14.4 我的v2rayx版本为1.5.1 情况皆同上述,望早日解决

切回131版本,还有v2ray rule可以用。现在这个版本PAC和Manual都不行

1.3.0 版本 v2ray rule 会导致 Mac AppStore 无法访问,1.4.0 版本 v2ray rule 正常

0ck0 commented 5 years ago

同样的问题,这个问题困扰了我好久了,Global Mode可以用,PAC和Manual都不行 我用的mac系统为 macOS Mojave 10.14.4 我的v2rayx版本为1.5.1 情况皆同上述,望早日解决

切回131版本,还有v2ray rule可以用。现在这个版本PAC和Manual都不行

1.3.0 版本 v2ray rule 会导致 Mac AppStore 无法访问,1.4.0 版本 v2ray rule 正常

我没使用过 1.3.0 版本

我猜测是没有

"rules" : [
      {
        "type" : "field",
        "outboundTag" : "direct",
        "domain" : [
          "localhost",
          "domain:me.com",
          "domain:lookup-api.apple.com",
          "domain:icloud-content.com",
          "domain:icloud.com",
          "domain:cdn-apple.com",
          "domain:apple-cloudkit.com",
          "domain:apple.com",
          "domain:apple.co",
          "domain:aaplimg.com",
          "domain:guzzoni.apple.com",
          "geosite:cn"
Edger commented 5 years ago

同样的问题,这个问题困扰了我好久了,Global Mode可以用,PAC和Manual都不行 我用的mac系统为 macOS Mojave 10.14.4 我的v2rayx版本为1.5.1 情况皆同上述,望早日解决

切回131版本,还有v2ray rule可以用。现在这个版本PAC和Manual都不行

1.3.0 版本 v2ray rule 会导致 Mac AppStore 无法访问,1.4.0 版本 v2ray rule 正常

我没使用过 1.3.0 版本

我猜测是没有

"rules" : [
      {
        "type" : "field",
        "outboundTag" : "direct",
        "domain" : [
          "localhost",
          "domain:me.com",
          "domain:lookup-api.apple.com",
          "domain:icloud-content.com",
          "domain:icloud.com",
          "domain:cdn-apple.com",
          "domain:apple-cloudkit.com",
          "domain:apple.com",
          "domain:apple.co",
          "domain:aaplimg.com",
          "domain:guzzoni.apple.com",
          "geosite:cn"

不清楚,我现在换到 ClashX 去了

isxylands commented 4 years ago

今天在一台OS X 10.11.6的电脑上,发现使用同样的1.5.1版本、同样的Server,Manual Mode是OK的。看来是和OS X系统有关,可能和操作系统新版本的某些调整有关?烦请大神们分析分析

isxylands commented 4 years ago

那台OS X 10.11.6的电脑其实也存在这个问题,重现方法是重启操作系统。上次安装完之后一直没重启,Manual Mode是OK的;今天重启了下系统,就复现了10.14.x上的问题,Manual Mode不能用了。