summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2022-05-10 12:25:57 +0100
committerEmīls <emils@mullvad.net>2022-05-10 12:25:57 +0100
commitffb55003448bbe1e09765a2ff00d3e386a37d6c8 (patch)
tree66f4021d73b1bdc597cf856c585d80b1357ae061
parentcb35b057d7be493f7fe144dccc67c6838c1955e6 (diff)
parent779efb3225dac10fa351db4df8576d5175cdb11e (diff)
downloadmullvadvpn-ffb55003448bbe1e09765a2ff00d3e386a37d6c8.tar.xz
mullvadvpn-ffb55003448bbe1e09765a2ff00d3e386a37d6c8.zip
Merge branch 'android-lower-default-mtu'
-rw-r--r--CHANGELOG.md3
-rw-r--r--talpid-core/src/tunnel/wireguard/config.rs6
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ca607b3ca9..58c6597bf7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,6 +55,9 @@ Line wrap the file at 100 chars. Th
- Pause API interactions when the daemon has not been used for 3 days.
- Simplified output of `mullvad status` command.
+#### Android
+- Lowered default MTU to 1280 on Android.
+
### Fixed
- Fix the sometimes incorrect time added text after adding time to the account.
- Fix scrollbar no longer responsive and usable when covered by other elements.
diff --git a/talpid-core/src/tunnel/wireguard/config.rs b/talpid-core/src/tunnel/wireguard/config.rs
index 7566d5c141..026c6c9fae 100644
--- a/talpid-core/src/tunnel/wireguard/config.rs
+++ b/talpid-core/src/tunnel/wireguard/config.rs
@@ -30,8 +30,14 @@ pub struct Config {
pub obfuscator_config: Option<ObfuscatorConfig>,
}
+#[cfg(not(target_os = "android"))]
const DEFAULT_MTU: u16 = 1380;
+/// Set the MTU to the lowest possible whilst still allowing for IPv6 to help with wireless
+/// carriers that do a lot of encapsulation.
+#[cfg(target_os = "android")]
+const DEFAULT_MTU: u16 = 1280;
+
/// Configuration errors
#[derive(err_derive::Error, Debug)]
pub enum Error {