Skip to content

Commit affc14b

Browse files
committed
Use maybenotv2 on iOS, remove maybenotv1
1 parent 1320907 commit affc14b

File tree

11 files changed

+18
-22
lines changed

11 files changed

+18
-22
lines changed

android/app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
1919
val extraAssetsDirectory = layout.buildDirectory.dir("extraAssets").get()
2020
val relayListPath = extraAssetsDirectory.file("relays.json").asFile
21-
val maybenotMachinesFile = extraAssetsDirectory.file("maybenot_machines_v2").asFile
21+
val maybenotMachinesFile = extraAssetsDirectory.file("maybenot_machines").asFile
2222
val defaultChangelogAssetsDirectory = "$repoRootPath/android/src/main/play/release-notes/"
2323
val extraJniDirectory = layout.buildDirectory.dir("extraJni").get()
2424

android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import org.koin.android.ext.android.getKoin
3232
import org.koin.core.context.loadKoinModules
3333

3434
private const val RELAY_LIST_ASSET_NAME = "relays.json"
35-
private const val MAYBENOT_MACHINES_ASSET_NAME = "maybenot_machines_v2"
35+
private const val MAYBENOT_MACHINES_ASSET_NAME = "maybenot_machines"
3636

3737
class MullvadVpnService : TalpidVpnService() {
3838

build-apk.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ echo "Updating relays.json..."
115115
cargo run --bin relay_list "${CARGO_ARGS[@]}" > android/app/build/extraAssets/relays.json
116116

117117
echo "Copying maybenot machines..."
118-
cp dist-assets/maybenot_machines_v2 android/app/build/extraAssets/
118+
cp dist-assets/maybenot_machines android/app/build/extraAssets/
119119

120120
cd "$SCRIPT_DIR/android"
121121
$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}"

dist-assets/maybenot_machines

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
789cd5cfbb0900200c04d08b833886adb889389f5bb9801be811acb58ae2837ce02010c158b070555c9538b6377a64dbb0ceff242c20b79038507dd169fbede9f629bf6f021efa1b66
2-
789cedd0510a401110856153f665ffbbb1030e991735717890f8eabae22f35e252e31a6c2b6c2bf158ce88010b61b69fed14db7fabd8498ffad17d8fedbf5decc4adde3ab7b0fddb045fa153d3ff09ecdb6c7faf0cd04322e8
3-
789cedd1510a80200c80617de95addff36dda096e84b209bfe0f1bb40f32297f1056cbdd954eb68d6c9b7ac8e2e33a650176fbdd6ea07df24227b7daaf9effa27df2462768edade766689fa2a093d47aedbf86f6291a3ad1593ffb6e45fb4454795e630ae31d11bd1bedffeb0151b22c62
4-
789cedd2bd4b82411c07f07b2a48846a089a326889861a9c2452ee12221e0ca2a5201ca5a122fc0bda042544370771f3159c9c0405e51914e45c5414df7d441075f00515c4c553f0117906075f40f0331c77c7ddef8efb1e05a6de8e6f3d96661392ee1c6a9f349b72e6316a6e542c4c980b5dbb24cfbbcccefa1d00d57df145ff44079506a677adacc29623a4780f30288a312e99440f809a7d9b457c4711a1b8cf7249ea2adf75cb698e1b4fb50f19dc4d67e0c95d12d354186ab3b1e74f5b9ab7aecc4e70f332e918bfdef6db03ce9042a2bba491e88324629022ef85a6f1aa95a3ece0efcb5f5223012039997e3b726455cb84a9f82322db96f6ff531dbada6558bb120bdce79915bf6c6bc5f51659febc1141265ee0
1+
02eNptjLsNwCAQQ++yQRZImTJlRIfYBDEJA7ERJQtQ0iC+dxSIJ1mWLcv5TsLH9wMmF4KLqwkRAawk2yPR00CHX3V3j1GziWvE09NBBWg9Fjk=
2+
02eNqFjLENwCAMBP8hC2SJlKnTsVr2zBKUaVACNgiBEJxknex/Oezv9fjjRCF8mXLY4pAEbpeFJFlFqJBGA7PqWQ3spCer4l3rnvGDH6+FGlE=
3+
02eNqFjDkOgDAMBL056PkEJTVdvsY/+URKmojDmwiBUDyStbJ35DLuy5anWRrlqLTDcA0AkTXVkDt01ZAHwLFwludZeMsLLILlRRax4+lKcnrnl/8HJzqIIG0=
4+
02eNpdjr0LQVEYxt9zGES5o4myKVksFM45lEHKx0LJYDAZ5C+QRTHIaGETViYDKYPp3ijFYLj3KkmGK2WwuVwiv3rrrafnA1Jm16ijKBQ+6NRDGPJ2E0Xe6YnAD0hFD9nm/ObIHumlv4imZ3Mm8DwvtaxB0Jy1IUex0pYIIB30lhuCYkYvwW6nQFSV41R1L8vkmwlgEOONVvEaYt1SwLhdhxn8gdBgEfXU7RFmzeR9YtPPxrbqOVkLsd29XJhIJfbqRomGheLcYUWeFgxQodrq9wcP1E88/w==

dist-assets/maybenot_machines_v2

-4
This file was deleted.

gui/tasks/distribution.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const config = {
107107
{ from: distAssets('uninstall_macos.sh'), to: './uninstall.sh' },
108108
{ from: buildAssets('shell-completions/_mullvad'), to: '.' },
109109
{ from: buildAssets('shell-completions/mullvad.fish'), to: '.' },
110-
{ from: distAssets('maybenot_machines_v2'), to: '.' },
110+
{ from: distAssets('maybenot_machines'), to: '.' },
111111
],
112112
},
113113

@@ -179,7 +179,7 @@ const config = {
179179
),
180180
to: '.',
181181
},
182-
{ from: distAssets('maybenot_machines_v2'), to: '.' },
182+
{ from: distAssets('maybenot_machines'), to: '.' },
183183
],
184184
},
185185

@@ -208,7 +208,7 @@ const config = {
208208
{ from: distAssets(path.join('linux', 'apparmor_mullvad')), to: '.' },
209209
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'openvpn')), to: '.' },
210210
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'apisocks5')), to: '.' },
211-
{ from: distAssets('maybenot_machines_v2'), to: '.' },
211+
{ from: distAssets('maybenot_machines'), to: '.' },
212212
],
213213
},
214214

ios/MullvadVPN.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9260,7 +9260,7 @@
92609260
repositoryURL = "https://github.com/mullvad/wireguard-apple.git";
92619261
requirement = {
92629262
kind = revision;
9263-
revision = cc6d3e918691c82d13389ad0fdbe8f35b683a6fc;
9263+
revision = ee90a96a20d42d231b878277d0a3fe4dfb63d93d;
92649264
};
92659265
};
92669266
/* End XCRemoteSwiftPackageReference section */

ios/MullvadVPN.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"kind" : "remoteSourceControl",
1515
"location" : "https://github.com/mullvad/wireguard-apple.git",
1616
"state" : {
17-
"revision" : "cc6d3e918691c82d13389ad0fdbe8f35b683a6fc"
17+
"revision" : "ee90a96a20d42d231b878277d0a3fe4dfb63d93d"
1818
}
1919
}
2020
],

ios/PacketTunnelCore/Daita/Maybenot.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// This is an autogenerated file, do not edit
33
public struct Maybenot {
44
public let machines="""
5-
789cd5cfbb0900200c04d08b833886adb889389f5bb9801be811acb58ae2837ce02010c158b070555c9538b6377a64dbb0ceff242c20b79038507dd169fbede9f629bf6f021efa1b66
6-
789cedd0510a401110856153f665ffbbb1030e991735717890f8eabae22f35e252e31a6c2b6c2bf158ce88010b61b69fed14db7fabd8498ffad17d8fedbf5decc4adde3ab7b0fddb045fa153d3ff09ecdb6c7faf0cd04322e8
7-
789cedd1510a80200c80617de95addff36dda096e84b209bfe0f1bb40f32297f1056cbdd954eb68d6c9b7ac8e2e33a650176fbdd6ea07df24227b7daaf9effa27df2462768edade766689fa2a093d47aedbf86f6291a3ad1593ffb6e45fb4454795e630ae31d11bd1bedffeb0151b22c62
8-
789cedd2bd4b82411c07f07b2a48846a089a326889861a9c2452ee12221e0ca2a5201ca5a122fc0bda042544370771f3159c9c0405e51914e45c5414df7d441075f00515c4c553f0117906075f40f0331c77c7ddef8efb1e05a6de8e6f3d96661392ee1c6a9f349b72e6316a6e542c4c980b5dbb24cfbbcccefa1d00d57df145ff44079506a677adacc29623a4780f30288a312e99440f809a7d9b457c4711a1b8cf7249ea2adf75cb698e1b4fb50f19dc4d67e0c95d12d354186ab3b1e74f5b9ab7aecc4e70f332e918bfdef6db03ce9042a2bba491e88324629022ef85a6f1aa95a3ece0efcb5f5223012039997e3b726455cb84a9f82322db96f6ff531dbada6558bb120bdce79915bf6c6bc5f51659febc1141265ee0
5+
02eNptjLsNwCAQQ++yQRZImTJlRIfYBDEJA7ERJQtQ0iC+dxSIJ1mWLcv5TsLH9wMmF4KLqwkRAawk2yPR00CHX3V3j1GziWvE09NBBWg9Fjk=
6+
02eNqFjLENwCAMBP8hC2SJlKnTsVr2zBKUaVACNgiBEJxknex/Oezv9fjjRCF8mXLY4pAEbpeFJFlFqJBGA7PqWQ3spCer4l3rnvGDH6+FGlE=
7+
02eNqFjDkOgDAMBL056PkEJTVdvsY/+URKmojDmwiBUDyStbJ35DLuy5anWRrlqLTDcA0AkTXVkDt01ZAHwLFwludZeMsLLILlRRax4+lKcnrnl/8HJzqIIG0=
8+
02eNpdjr0LQVEYxt9zGES5o4myKVksFM45lEHKx0LJYDAZ5C+QRTHIaGETViYDKYPp3ijFYLj3KkmGK2WwuVwiv3rrrafnA1Jm16ijKBQ+6NRDGPJ2E0Xe6YnAD0hFD9nm/ObIHumlv4imZ3Mm8DwvtaxB0Jy1IUex0pYIIB30lhuCYkYvwW6nQFSV41R1L8vkmwlgEOONVvEaYt1SwLhdhxn8gdBgEfXU7RFmzeR9YtPPxrbqOVkLsd29XJhIJfbqRomGheLcYUWeFgxQodrq9wcP1E88/w==
99
"""
1010
public let maximumEvents: UInt32 = 1000
1111
public let maximumActions: UInt32 = 1000

talpid-wireguard/src/wireguard_go/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl Tunnel for WgGoTunnel {
238238

239239
#[cfg(daita)]
240240
fn load_maybenot_machines(resource_dir: &Path) -> Result<CString> {
241-
let path = resource_dir.join("maybenot_machines_v2");
241+
let path = resource_dir.join("maybenot_machines");
242242
log::debug!("Reading maybenot machines from {}", path.display());
243243

244244
let machines = fs::read_to_string(path).map_err(|e| TunnelError::StartDaita(Box::new(e)))?;

talpid-wireguard/src/wireguard_nt/daita.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl Machinist {
440440
}
441441

442442
fn load_maybenot_machines(resource_dir: &Path) -> Result<Vec<maybenot::Machine>, Error> {
443-
let path = resource_dir.join("maybenot_machines_v2");
443+
let path = resource_dir.join("maybenot_machines");
444444
log::debug!("Reading maybenot machines from {}", path.display());
445445

446446
let mut machines = vec![];

0 commit comments

Comments
 (0)