Skip to content

Keivan-sf/v2ray-switcher

Repository files navigation

v2ray-switcher

A simple app to automatically switch between v2ray servers and always expose a reliable socks5 proxy

To use:

Grab the latest version from Release page and extract it

  1. Configure your config.json like below
{
    "subscription_urls": [
        "https://yoursubscription-url.example"
    ],
    "servers": [
        "vmess://example_config_uri"
    ]
}
  1. Run v2ray-switcher

A socks5 proxy will be exposed at 4080 once a good connection is established

To use from source:

Clone the repository git clone https://github.com/Keivan-sf/v2ray-switcher.git

  1. Run npm i && npm run dev:prepare
  2. configure your config.json file located at ./src
  3. Run npm start

A socks5 proxy will be exposed at 4080 once a good connection is established

Setup username and password for your socks5 proxy

In order to have authentication for your proxy, you can add the following properties to your config.json:

{
    // ...rest of the config
    "auth": {
        "username": "user",
        "password": "pw"
    }
}

Note that you must set both or neither

Log Level

You can set log level for development purposes

{
    // ...rest of the config
    "logLevel": 2
}

logLevel values:

  • 1: (default) Normal logging
  • 2: Verbose logging, includes config URIs when a tester succeeds or fails

Supported formats

  • Vmess
  • Vless

About

Automatically switch between v2ray servers

Resources

Stars

Watchers

Forks

Packages

No packages published