Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keivan-sf/v2ray-switcher

Automatically switch between v2ray servers
https://github.com/keivan-sf/v2ray-switcher

Last synced: about 1 month ago
JSON representation

Automatically switch between v2ray servers

Awesome Lists containing this project

README

        

# 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](https://github.com/Keivan-sf/v2ray-switcher/releases) and extract it

1. Configure your `config.json` like below

```js
{
"subscription_urls": [
"https://yoursubscription-url.example"
],
"servers": [
"vmess://example_config_uri"
]
}
```
2. 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`:
```js
{
// ...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
```js
{
// ...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