Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/keivan-sf/v2ray-switcher
- Owner: Keivan-sf
- Created: 2023-02-16T05:35:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T10:25:41.000Z (about 1 year ago)
- Last Synced: 2024-10-14T08:35:41.831Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 26.6 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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