diff options
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/config.rs | 6 |
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 { |
