This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.

19 lines
798 B
Markdown
Raw Normal View History

2022-03-06 17:09:40 +01:00
# mullvad-best-server
2022-03-06 17:46:55 +01:00
![Build](https://github.com/bastiandoetsch/mullvad-best-server/actions/workflows/go.yml/badge.svg)
Determines the mullvat.net wireguard server with the lowest latency.
2022-03-06 17:09:40 +01:00
## Installation
Download binary from releases for your platform and unpack.
## Usage
### Default usage
2022-03-06 17:09:40 +01:00
Execute `mullvad-best-server`. It outputs the code, e.g. `de05`. You can then connect to it with e.g. wireguard using the normal shell scripts.
### Extended Output
If you want the full server information, execute `mullvad-best-server -o json`. It returns the full json output of the server information.
2022-03-06 17:09:40 +01:00
## Background
The program uses `https://api.mullvad.net/www/relays/wireguard/` to get the current server list, pings the ones with the right country
and outputs the server with the lowest ping.