Skip to content

Commit

Permalink
Add --json, --list-providers, ignore inactive, add colors (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 authored Apr 7, 2024
1 parent db5877c commit bacfd45
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 109 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gets the list of Mullvad servers with the best latency according to `ping`.
2. Run the following command

```shell
deno run --allow-net=api.mullvad.net,deno.land --allow-run=ping https://raw.githubusercontent.com/grant0417/mullvad-ping/v0.6.0/script.ts
deno run --allow-net=api.mullvad.net,deno.land --allow-run=ping https://raw.githubusercontent.com/grant0417/mullvad-ping/v0.7.0/script.ts
```

Note: The Windows version of `ping` is somewhat more limited than that of Linux
Expand All @@ -22,15 +22,17 @@ or Mac so the times are less precice and the script will take ~5x longer.
```
Usage: script [OPTION]
--country <code> the country you want to query (eg. us, gb, de)
--list <plain|json> lists the available servers
--list lists the available servers
--list-countries lists the available countries
--list-providers lists the available providers
--type <type> the type of server to query (openvpn, bridge, wireguard, all)
--count <n> the number of pings to the server (default 3)
--interval <i> the interval between pings in seconds (default/min 0.2)
--top <n> the number of top servers to show, (0=all)
--count <n> the number of pings to the server (default 5)
--top <n> the number of top servers to show, (0=all, default 5)
--port-speed <n> only show servers with at least n Gigabit port speed
--provider <name> only show servers from the given provider
--owned <true|false> only show servers owned by Mullvad
--run-mode <type> only show servers running from (all, ram, disk)
--help usage information
--include-inactive include inactive servers
--json output the results in JSON format
--help, -h display this help and exit
```
Loading

0 comments on commit bacfd45

Please sign in to comment.