Created
November 8, 2025 16:16
-
-
Save VIEWVIEWVIEW/3048b798ea9691811a970cca09485d62 to your computer and use it in GitHub Desktop.
This script generates a list of socks5 servers from Mullvad.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| API_URL="https://api.mullvad.net/www/relays/wireguard" | |
| curl -s "$API_URL" \ | |
| | jq -r ' | |
| # For each element in the top‐level array | |
| .[] | |
| # If it has a wireguard.relays array, iterate it; otherwise skip | |
| | .wireguard.relays?[]? | |
| # Extract the IPv4 address and format as a socks5 proxy on port 1080 | |
| | "socks5://\(.ipv4_addr_in):1080" | |
| ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment