diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2020-05-13 12:43:25 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-05-13 12:43:25 +0200 |
| commit | 4176b3a08929558fc55ee74b9126e293decd5b35 (patch) | |
| tree | 6e39407b10b84581ba3bf07935ae33c8e52a783b | |
| parent | 39f028115a338c99efd23d8179831fa3d951ddea (diff) | |
| parent | f9049707dd0efd9c17534399886763ae3ae84f5b (diff) | |
| download | mullvadvpn-4176b3a08929558fc55ee74b9126e293decd5b35.tar.xz mullvadvpn-4176b3a08929558fc55ee74b9126e293decd5b35.zip | |
Merge branch 'upgrade-openvpn-openssl'
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rwxr-xr-x | build-apk.sh | 2 | ||||
| -rwxr-xr-x | build.sh | 2 | ||||
| -rwxr-xr-x | ci/ci-rust-script.sh | 2 | ||||
| m--------- | dist-assets/binaries | 0 | ||||
| -rwxr-xr-x | env.sh | 32 | ||||
| -rwxr-xr-x | prepare_release.sh | 2 | ||||
| -rw-r--r-- | talpid-core/src/proxy/shadowsocks.rs | 2 |
8 files changed, 17 insertions, 27 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7df618c731..2bf918290b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ Line wrap the file at 100 chars. Th - Embed TLS certificates used for HTTPS into the binary rather than loading them from disk at runtime - Ignore case when setting the relay or bridge location in the CLI. +- Upgrade OpenVPN from 2.4.8 to 2.4.9 and the OpenSSL version it uses from 1.1.1d to 1.1.1g. +- Upgrade shadowsocks-rust to version 1.8.10 #### Android - Adjust the minimum supported Android version to correctly reflect the supported versions decided diff --git a/build-apk.sh b/build-apk.sh index 8f1a8b9998..5fb4a26582 100755 --- a/build-apk.sh +++ b/build-apk.sh @@ -87,10 +87,8 @@ for ARCHITECTURE in $ARCHITECTURES; do esac echo "Building mullvad-daemon for $TARGET" - source env.sh "$TARGET" cargo +stable build $CARGO_ARGS --target "$TARGET" --package mullvad-jni - cp -a "$SCRIPT_DIR/dist-assets/binaries/$TARGET" "$SCRIPT_DIR/android/build/extraJni/$ABI" cp "$SCRIPT_DIR/target/$TARGET/$BUILD_TYPE/libmullvad_jni.so" "$SCRIPT_DIR/android/build/extraJni/$ABI/" done @@ -17,7 +17,7 @@ RUSTC_VERSION=`rustc +stable --version` PRODUCT_VERSION=$(node -p "require('./gui/package.json').version" | sed -Ee 's/\.0//g') CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$SCRIPT_DIR/target"} -source env.sh "" +source env.sh if [[ "${1:-""}" != "--dev-build" ]]; then BUILD_MODE="release" diff --git a/ci/ci-rust-script.sh b/ci/ci-rust-script.sh index 9df86c0f39..f6f6b4f51f 100755 --- a/ci/ci-rust-script.sh +++ b/ci/ci-rust-script.sh @@ -5,7 +5,7 @@ set -eux RUST_TOOLCHAIN_CHANNEL=$1 export RUSTFLAGS="--deny unused_imports --deny dead_code --deny unused_mut --deny unused_variables --deny unused_parens" -source env.sh "" +source env.sh case "$(uname -s)" in Linux*|Darwin*) diff --git a/dist-assets/binaries b/dist-assets/binaries -Subproject fbd0bd510547bed0596dbb7c456de7c4df9556e +Subproject 9a6f8b3de6ec8d526e74635ae56c99ee03d36cb @@ -2,29 +2,19 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ -n "$1" ]; then - TARGET="$1" -else - TARGET="" -fi - -if [ -z "$TARGET" ]; then - case "$(uname -s)" in - Linux*) - TARGET="x86_64-unknown-linux-gnu" - ;; - Darwin*) - TARGET="x86_64-apple-darwin" - ;; - MINGW*|MSYS_NT*) - TARGET="x86_64-pc-windows-msvc" - ;; - esac -fi +case "$(uname -s)" in + Linux*) + TARGET="x86_64-unknown-linux-gnu" + ;; + Darwin*) + TARGET="x86_64-apple-darwin" + ;; + MINGW*|MSYS_NT*) + TARGET="x86_64-pc-windows-msvc" + ;; +esac case "$TARGET" in - *android*) - ;; *linux*) export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" diff --git a/prepare_release.sh b/prepare_release.sh index 3944dad675..52249a0a39 100755 --- a/prepare_release.sh +++ b/prepare_release.sh @@ -27,7 +27,7 @@ echo "Updating version in metadata files..." ./version-metadata.sh inject $PRODUCT_VERSION echo "Syncing Cargo.lock with new version numbers" -source env.sh "" +source env.sh # If cargo exits with a non zero exit status and it's not a timeout (exit code 124) it's an error set +e timeout 5s cargo +stable build diff --git a/talpid-core/src/proxy/shadowsocks.rs b/talpid-core/src/proxy/shadowsocks.rs index 6a1fab1414..cd5d1295b3 100644 --- a/talpid-core/src/proxy/shadowsocks.rs +++ b/talpid-core/src/proxy/shadowsocks.rs @@ -204,7 +204,7 @@ impl ShadowsocksProxyMonitor { fn parse_port(logline: &str) -> Result<u16> { // TODO: Compile once and reuse. - let re = Regex::new(r"(?:TCP Listening on \d+\.\d+\.\d+\.\d+:)(\d+$)").unwrap(); + let re = Regex::new(r"(?:TCP listening on \d+\.\d+\.\d+\.\d+:)(\d+$)").unwrap(); if let Some(captures) = re.captures(logline) { return Ok(captures[1].parse().map_err(|_| { |
