A simple app to automatically switch between v2ray servers and always expose a reliable socks5 proxy
Grab the latest version from Release page and extract it
- Configure your
config.json
like below
{
"subscription_urls": [
"https://yoursubscription-url.example"
],
"servers": [
"vmess://example_config_uri"
]
}
- Run
v2ray-switcher
A socks5 proxy will be exposed at 4080
once a good connection is established
Clone the repository git clone https://github.com/Keivan-sf/v2ray-switcher.git
- Run
npm i && npm run dev:prepare
- configure your
config.json
file located at./src
- Run
npm start
A socks5 proxy will be exposed at 4080
once a good connection is established
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
You can set log level for development purposes
{
// ...rest of the config
"logLevel": 2
}
logLevel
values:
1
: (default) Normal logging2
: Verbose logging, includes config URIs when a tester succeeds or fails
- Vmess
- Vless