diff options
| author | Linus Färnstrand <faern@faern.net> | 2023-02-27 16:51:42 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2023-02-28 16:04:37 +0100 |
| commit | 59287a6fe6bc8010cb057628b6dc4885dee06344 (patch) | |
| tree | 9b9ebf008b02e4f2a504ce5f436b965664fc6d5f | |
| parent | b9bd3d7dcfe43853677911ef6729f32a127aa059 (diff) | |
| download | mullvadvpn-59287a6fe6bc8010cb057628b6dc4885dee06344.tar.xz mullvadvpn-59287a6fe6bc8010cb057628b6dc4885dee06344.zip | |
Enable TCP_NODELAY on the WireGuard over TCP socket
| -rw-r--r-- | tunnel-obfuscation/src/udp2tcp.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tunnel-obfuscation/src/udp2tcp.rs b/tunnel-obfuscation/src/udp2tcp.rs index 386236b446..0eada9b928 100644 --- a/tunnel-obfuscation/src/udp2tcp.rs +++ b/tunnel-obfuscation/src/udp2tcp.rs @@ -49,6 +49,8 @@ impl Udp2Tcp { TcpOptions { #[cfg(target_os = "linux")] fwmark: settings.fwmark, + // Disables the Nagle algorithm on the TCP socket. Improves performance + nodelay: true, ..TcpOptions::default() }, ) |
