diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2018-07-17 11:38:48 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-07-17 11:57:27 +0100 |
| commit | 61a0a7b1849be68d403a8748e34e6675a9772739 (patch) | |
| tree | 56145b2987480822bce897dab20f02a6e2eb3690 | |
| parent | 508fc0775e62f9361df2814cad5229b7706d4095 (diff) | |
| download | mullvadvpn-61a0a7b1849be68d403a8748e34e6675a9772739.tar.xz mullvadvpn-61a0a7b1849be68d403a8748e34e6675a9772739.zip | |
Replace list-relay call with curl in build.sh
| -rwxr-xr-x | build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -86,7 +86,7 @@ sed -i.bak \ mullvad-daemon/Cargo.toml \ mullvad-cli/Cargo.toml \ mullvad-problem-report/Cargo.toml - + SEMVER_ARRAY=($(echo $SEMVER_VERSION | sed -r 's/[.-]+/ /g')) SEMVER_MAJOR=${SEMVER_ARRAY[0]} @@ -131,7 +131,11 @@ if [[ "$(uname -s)" != "MINGW"* ]]; then fi echo "Updating relay list..." -MULLVAD_RESOURCE_DIR="$SCRIPT_DIR/dist-assets/" ./target/release/list-relays > dist-assets/relays.json +curl -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "id": "0", "method": "relay_list"}' \ + https://api.mullvad.net/rpc/ \ + -o dist-assets/relays.json echo "Installing JavaScript dependencies..." yarn install |
