Skip to content

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

Description

@Ali-Flt

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions