cgproxy icon indicating copy to clipboard operation
cgproxy copied to clipboard

using with -confdir . not working but -config /etc/v2ra/config.json works

Open Ali-Flt opened this issue 2 years ago • 0 comments

Using the tutorial for general proxy in the readme I've set up cgproxy as gateway. When I put my vmess outbound config in 06_outbounds_10_myproxy.json file like this:

{
        "outbounds": [{
                "domainStrategy": "AsIs",
                "protocol": "vmess",
                "settings": {
                        "vnext": [{
                                "address": "XXXX",
                                "port": 443,
                                "users": [{
                                        "alterId": 0,
                                        "id": "XXXX,
                                        "security": "auto"
                                }]
                        }]
                },
                "streamSettings": {
                        "network": "ws",
                        "security": "tls",
                        "tlsSettings": {
                                "allowInsecure": true,
                                "serverName": "XXXX"
                        },
                        "wsSettings": {
                                "headers": {
                                        "Host": "XXXX"
                                },
                                "path": "XXXX"
                        }
                },
                "tag": "outBound_PROXY"
        }]
}

and use v2ray run -confdir . Everything is sent to outBound_BLACKHOLE But using the merge.sh file to merge configs and using v2ray run -c /etc/v2ray/config.json works perfectly. What could be the issue?

Ali-Flt avatar Feb 12 '23 23:02 Ali-Flt