yanue / V2rayU

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

3.0正式版,需手动升级(更新链接被gitee禁) #752

Closed yanue closed 3 years ago

yanue commented 4 years ago

https://github.com/yanue/V2rayU/releases/tag/3.0.3 新增Trojan和vless支持 修改运行目录到~/.V2rayU 如遇无法运行,尝试命令行执行:

# permission
sudo chown -R $USER  ~/.V2rayU/
sudo chmod -R 777 ~/.V2rayU/

# root permission
cd  ~/.V2rayU/
cmd="./unzip.sh"
sudo chown root:admin ${cmd}
sudo chmod a+rx ${cmd}
sudo chmod +s ${cmd}

cmd="./V2rayUTool"
sudo chown root:admin ${cmd}
sudo chmod a+rx ${cmd}
sudo chmod +s ${cmd}

cmd="./V2rayUHelper"
sudo chown root:admin ${cmd}
sudo chmod a+rx ${cmd}
sudo chmod +s ${cmd}

echo 'done'
SoHuDrgon commented 4 years ago

大佬,app下载下来打不开应用程序,我加了执行权限了,还是打不开。 chmod +x /Applications/V2rayU.app/Contents/MacOS/V2rayU

yanue commented 4 years ago

额.. 今晚再重新发一版

SoHuDrgon commented 4 years ago

大佬,我自己打包成功了,vless协议是好了,好像还是不支持xtls,大佬麻烦添加支持一下xtls。

yanue commented 4 years ago

请重新下载后试用

telwenshen commented 4 years ago

歌颂大佬~~

SoHuDrgon commented 4 years ago

可以了大佬,歌颂大佬。 @

avatasia commented 4 years ago

配置trojan 提示这个 v2ray.com/core/proxy/trojan: connection ends > tls: invalid NextProtos value

配置文件如下:

{ "policy": null, "log": { "access": "", "error": "", "loglevel": "warning" }, "inbounds": [ { "listen": "127.0.0.1", "protocol": "socks", "settings": { "udp": false, "auth": "noauth" }, "port": "1080" }, { "listen": "127.0.0.1", "protocol": "http", "settings": { "timeout": 360 }, "port": "1087" } ], "outbounds": [ { "tag": "proxy", "protocol": "trojan", "settings": { "vnext": null, "servers": [ { "email": null, "address": "v.top", "method": "chacha20", "ota": false, "password": "xxx", "port": 443, "level": 1, "users": null } ], "response": null }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "allowInsecure": false, "serverName": null }, "tcpSettings": null, "kcpSettings": null, "wsSettings": null, "httpSettings": null, "quicSettings": null, "xtlsSettings": null }, "mux": { "enabled": false, "concurrency": -1 } }, { "tag": "direct", "protocol": "freedom", "settings": { "vnext": null, "servers": null, "response": null }, "streamSettings": null, "mux": null }, { "tag": "block", "protocol": "blackhole", "settings": { "vnext": null, "servers": null, "response": { "type": "http" } }, "streamSettings": null, "mux": null } ], "stats": null, "api": null, "dns": null, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "port": null, "inboundTag": [ "api" ], "outboundTag": "api", "ip": null, "domain": null } ] } }

imyuman commented 4 years ago

大佬,macos下端口一直恢复成443,包括导入都默认443

why95599 commented 4 years ago

支持大佬!升级的太及时了

Evans-Li commented 4 years ago

太强了 大佬 🎉

doutuo commented 4 years ago

现在3.0版本的,可以直接安装吗?还是要像2.3.1那样,要去终端执行命令?

young40 commented 4 years ago

太6了,马上升级为Trojan

aliitt commented 4 years ago

为什么我的Trojan还是导入不进去

jinhui0520 commented 4 years ago

大佬,配置好以后为什么v2rayu不管用,在v2rayx上配置好后,可以翻墙,为什么?

jinhui0520 commented 4 years ago

大佬,配置好以后为什么v2rayu不管用,在v2rayx上配置好后,可以翻墙,为什么?

……应该是端口冲突了在u更换端口或卸载x

谢谢大佬

young40 commented 4 years ago

看Log一直在报错

/Applications/V2rayU.app/Contents/Resources/config.json] > v2ray.com/core/main/json: failed to execute v2ctl to convert config file. > v2ray.com/core/common/platform/ctlcmd: failed to execute v2ctl: 
v2ctl> Read config:  /Applications/V2rayU.app/Contents/Resources/config.json
v2ray.com/core/infra/conf: 0 Trojan server configured. > exit status 25

删了重装也是一样的。 看了下/Applications/V2rayU.app/Contents/Resources/config.json内容是:

{
  "log": {
    "error": "",
    "loglevel": "none",
    "access": ""
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "protocol": "socks",
      "settings": {
        "udp": false,
        "auth": "noauth"
      },
      "port": "1080"
    },
    {
      "listen": "0.0.0.0",
      "protocol": "http",
      "settings": {
        "timeout": 360
      },
      "port": "1087"
    }
  ],
  "outbounds": [
    {
      "protocol": "trojan",
      "streamSettings": {
        "network": "tcp",
        "tcpSettings": {
          "header": {
            "type": "none"
          }
        },
        "security": "none"
      },
      "tag": "proxy",
      "settings": null
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP",
        "redirect": "",
        "userLevel": 0
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {},
  "routing": {
    "settings": {
      "domainStrategy": "AsIs",
      "rules": [
        {
          "type": "field",
          "outboundTag": "proxy",
          "domain": [
            "xxxxxxxxx.com"
          ]
        },
        {
          "type": "field",
          "outboundTag": "direct",
          "domain": [
            "xxxxxxx.com"
          ]
        },
        {
          "type": "field",
          "ip": [
            "192.168.10.9",
            "192.168.10.7",
            "192.168.10.6"
          ],
          "outboundTag": "direct"
        }
      ]
    }
  },
  "transport": {}
}
young40 commented 4 years ago
{
      "protocol": "trojan",
      "streamSettings": {
        "network": "tcp",
        "tcpSettings": {
          "header": {
            "type": "none"
          }
        },
        "security": "none"
      },
      "tag": "proxy",
      "settings": null
    }

似乎保存配置的时候,"settings": null 这个总是会失败。 导致/Applications/V2rayU.app/Contents/Resources/config.json解析错误。

@yanue 大佬,能否贴一个正确的trojan settings字段的正确格式。 我看看手工替换下能不能跑。

z-sq commented 4 years ago

正常打开,无法翻墙,哪位大佬帮忙看下,日志如下

V2Ray 4.31.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.15.2 darwin/amd64)
A unified platform for anti-censorship.
2020/10/31 09:13:59 [Info] v2ray.com/core/common/platform/ctlcmd: <v2ctl message> 
v2ctl> Read config:  /Applications/V2rayU.app/Contents/Resources/config.json
Failed to start v2ray.com/core/app/proxyman/inbound: failed to listen TCP on 1087 > v2ray.com/core/transport/internet: failed to listen on address: 127.0.0.1:1087 > v2ray.com/core/transport/internet/tcp: failed to listen TCP on127.0.0.1:1087 > listen tcp 127.0.0.1:1087: bind: address already in use

config.json内容是

{
  "log": {
    "error": "",
    "loglevel": "error",
    "access": ""
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "protocol": "socks",
      "settings": {
        "udp": false,
        "auth": "noauth"
      },
      "port": "1080"
    },
    {
      "listen": "127.0.0.1",
      "protocol": "http",
      "settings": {
        "timeout": 360
      },
      "port": "1087"
    }
  ],
  "outbounds": [
    {
      "mux": {
        "enabled": false,
        "concurrency": 8
      },
      "protocol": "vmess",
      "streamSettings": {
        "wsSettings": {
          "path": "/ssrvps.org",
          "headers": {
            "host": "nat1.2ray.cc"
          }
        },
        "tlsSettings": {
          "serverName": "nat1.2ray.cc",
          "allowInsecure": true
        },
        "security": "tls",
        "network": "ws"
      },
      "tag": "proxy",
      "settings": {
        "vnext": [
          {
            "address": "nat1.2ray.cc",
            "users": [
              {
                "id": "d2aa9204-d3ed-4230-b4c7-2bd5c59e62fe",
                "alterId": 0,
                "level": 0,
                "security": "aes-128-gcm"
              }
            ],
            "port": 443
          }
        ]
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP",
        "redirect": "",
        "userLevel": 0
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {},
  "routing": {
    "settings": {
      "domainStrategy": "AsIs",
      "rules": []
    }
  },
  "transport": {}
}
z-sq commented 4 years ago

1087端口占用 卸载其他软件 或偏好设置改端口

2020/10/31 15:13:51 [Warning] [3405837883] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://nat1.2ray.cc/ssrvps.org):  > dial tcp 120.240.48.232:443: connect: connection refused] > v2ray.com/core/common/retry: all retry attempts failed
2020/10/31 15:13:51 [Info] [3405837883] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > v2ray.com/core/proxy/socks: failed to transport all TCP response > io: read/write on closed pipe

更改端口后还是错误

young40 commented 4 years ago

@yanue 大佬,有进展了吗?

dr1llc4t commented 4 years ago

3.0 只是预览版,肯定一堆问题,等作者发布正式版吧。

young40 commented 4 years ago

@dr1llc4t 嗯嗯,给作者点赞加油。

服务器换了trojan,换了几个客户端都这样那样的问题,只能将就用了。等V2rayU的trojan稳定了

ioudove commented 3 years ago

作者怎么不更新了?难道被喝茶了?不会吧