diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-07-12 09:42:13 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-07-13 15:57:40 +0200 |
| commit | c77f4785d0d70561a82bf49c90f14aed9497a6e6 (patch) | |
| tree | 72542fc4989e8fae016bfbe7944d1fe7d178f79e | |
| parent | aeca9d7c1cbbd4e793defbbe509b88003a81f539 (diff) | |
| download | mullvadvpn-c77f4785d0d70561a82bf49c90f14aed9497a6e6.tar.xz mullvadvpn-c77f4785d0d70561a82bf49c90f14aed9497a6e6.zip | |
Update udp-over-tcp
| -rw-r--r-- | Cargo.lock | 115 | ||||
| -rw-r--r-- | talpid-core/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/mod.rs | 4 |
3 files changed, 38 insertions, 83 deletions
diff --git a/Cargo.lock b/Cargo.lock index a762b2ced9..08fadfd433 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -467,11 +467,8 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" dependencies = [ - "atty", - "humantime 1.3.0", "log", "regex", - "termcolor", ] [[package]] @@ -481,7 +478,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e" dependencies = [ "atty", - "humantime 2.1.0", + "humantime", "log", "regex", "termcolor", @@ -730,7 +727,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.6", + "pin-project-lite", "pin-utils", "proc-macro-hack", "proc-macro-nested", @@ -795,7 +792,7 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.8.1", + "tokio", "tokio-util", "tracing", ] @@ -859,7 +856,7 @@ checksum = "60daa14be0e0786db0f03a9e57cb404c9d756eed2b6c62b9ea98ec5743ec75a9" dependencies = [ "bytes 1.0.1", "http", - "pin-project-lite 0.2.6", + "pin-project-lite", ] [[package]] @@ -876,15 +873,6 @@ checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" [[package]] name = "humantime" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -dependencies = [ - "quick-error", -] - -[[package]] -name = "humantime" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" @@ -905,9 +893,9 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.6", + "pin-project-lite", "socket2 0.4.0", - "tokio 1.8.1", + "tokio", "tower-service", "tracing", "want", @@ -925,7 +913,7 @@ dependencies = [ "log", "rustls", "rustls-native-certs", - "tokio 1.8.1", + "tokio", "tokio-rustls", "webpki", ] @@ -1278,7 +1266,7 @@ dependencies = [ "natord", "serde", "talpid-types", - "tokio 1.8.1", + "tokio", "winapi 0.3.9", "winres", ] @@ -1316,7 +1304,7 @@ dependencies = [ "talpid-core", "talpid-platform-metadata", "talpid-types", - "tokio 1.8.1", + "tokio", "tokio-stream", "triggered", "uuid", @@ -1354,7 +1342,7 @@ dependencies = [ "rand 0.7.3", "talpid-core", "talpid-types", - "tokio 1.8.1", + "tokio", ] [[package]] @@ -1372,7 +1360,7 @@ dependencies = [ "prost", "prost-types", "talpid-types", - "tokio 1.8.1", + "tokio", "tonic", "tonic-build", "tower", @@ -1403,7 +1391,7 @@ dependencies = [ "regex", "talpid-platform-metadata", "talpid-types", - "tokio 1.8.1", + "tokio", "uuid", "winapi 0.3.9", "winres", @@ -1431,7 +1419,7 @@ dependencies = [ "socket2 0.3.19", "talpid-types", "tempfile", - "tokio 1.8.1", + "tokio", "tokio-rustls", "urlencoding", "webpki", @@ -1452,7 +1440,7 @@ dependencies = [ "mullvad-types", "talpid-core", "talpid-types", - "tokio 1.8.1", + "tokio", "widestring", "winapi 0.3.9", "winres", @@ -1546,7 +1534,7 @@ dependencies = [ "log", "netlink-packet-core", "netlink-sys", - "tokio 1.8.1", + "tokio", "tokio-util", ] @@ -1559,7 +1547,7 @@ dependencies = [ "futures", "libc", "log", - "tokio 1.8.1", + "tokio", ] [[package]] @@ -1726,7 +1714,7 @@ dependencies = [ "libc", "log", "rand 0.7.3", - "tokio 1.8.1", + "tokio", "winapi 0.3.9", ] @@ -1877,12 +1865,6 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - -[[package]] -name = "pin-project-lite" version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" @@ -2224,7 +2206,7 @@ dependencies = [ "netlink-proto", "nix 0.19.1", "thiserror", - "tokio 1.8.1", + "tokio", ] [[package]] @@ -2586,7 +2568,7 @@ dependencies = [ "talpid-platform-metadata", "talpid-types", "tempfile", - "tokio 1.8.1", + "tokio", "tokio-stream", "tonic", "tonic-build", @@ -2611,7 +2593,7 @@ dependencies = [ "libc", "log", "talpid-types", - "tokio 1.8.1", + "tokio", ] [[package]] @@ -2625,7 +2607,7 @@ dependencies = [ "parity-tokio-ipc", "prost", "talpid-types", - "tokio 1.8.1", + "tokio", "tonic", "tonic-build", "tower", @@ -2728,23 +2710,6 @@ dependencies = [ [[package]] name = "tokio" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092" -dependencies = [ - "bytes 0.5.6", - "iovec", - "lazy_static", - "memchr", - "mio 0.6.23", - "num_cpus", - "pin-project-lite 0.1.12", - "slab", - "tokio-macros 0.2.6", -] - -[[package]] -name = "tokio" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98c8b05dc14c75ea83d63dd391100353789f5f24b8b3866542a5e85c8be8e985" @@ -2756,25 +2721,14 @@ dependencies = [ "mio 0.7.13", "num_cpus", "once_cell", - "pin-project-lite 0.2.6", + "pin-project-lite", "signal-hook-registry", - "tokio-macros 1.3.0", + "tokio-macros", "winapi 0.3.9", ] [[package]] name = "tokio-macros" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tokio-macros" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54473be61f4ebe4efd09cec9bd5d16fa51d70ea0192213d754d2d500457db110" @@ -2791,7 +2745,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ "rustls", - "tokio 1.8.1", + "tokio", "webpki", ] @@ -2802,8 +2756,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f" dependencies = [ "futures-core", - "pin-project-lite 0.2.6", - "tokio 1.8.1", + "pin-project-lite", + "tokio", ] [[package]] @@ -2816,8 +2770,8 @@ dependencies = [ "futures-core", "futures-sink", "log", - "pin-project-lite 0.2.6", - "tokio 1.8.1", + "pin-project-lite", + "tokio", ] [[package]] @@ -2849,7 +2803,7 @@ dependencies = [ "pin-project 1.0.5", "prost", "prost-derive", - "tokio 1.8.1", + "tokio", "tokio-stream", "tokio-util", "tower", @@ -2882,7 +2836,7 @@ dependencies = [ "pin-project 1.0.5", "rand 0.8.3", "slab", - "tokio 1.8.1", + "tokio", "tokio-stream", "tokio-util", "tower-layer", @@ -2910,7 +2864,7 @@ checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ "cfg-if 1.0.0", "log", - "pin-project-lite 0.2.6", + "pin-project-lite", "tracing-attributes", "tracing-core", ] @@ -2989,15 +2943,16 @@ checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" [[package]] name = "udp-over-tcp" version = "0.1.0" -source = "git+https://github.com/mullvad/udp-over-tcp?rev=3d1abafe112ee8c2db47ca401f8e286756454e7a#3d1abafe112ee8c2db47ca401f8e286756454e7a" +source = "git+https://github.com/mullvad/udp-over-tcp?rev=1e27324362ed123b61fa2062b1599e5f9d569796#1e27324362ed123b61fa2062b1599e5f9d569796" dependencies = [ - "env_logger 0.7.1", + "env_logger 0.8.2", "err-context", "futures", + "lazy_static", "log", "nix 0.20.0", "structopt", - "tokio 0.2.25", + "tokio", ] [[package]] diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml index 977400e361..d13e2dc5b9 100644 --- a/talpid-core/Cargo.toml +++ b/talpid-core/Cargo.toml @@ -30,7 +30,7 @@ chrono = "0.4" tokio = { version = "1.8", features = [ "process", "rt-multi-thread", "fs" ] } tokio-stream = "0.1" rand = "0.7" -udp-over-tcp = { git = "https://github.com/mullvad/udp-over-tcp", rev = "3d1abafe112ee8c2db47ca401f8e286756454e7a" } +udp-over-tcp = { git = "https://github.com/mullvad/udp-over-tcp", rev = "1e27324362ed123b61fa2062b1599e5f9d569796" } [target.'cfg(not(target_os="android"))'.dependencies] diff --git a/talpid-core/src/tunnel/wireguard/mod.rs b/talpid-core/src/tunnel/wireguard/mod.rs index 034cabd316..53740a93b4 100644 --- a/talpid-core/src/tunnel/wireguard/mod.rs +++ b/talpid-core/src/tunnel/wireguard/mod.rs @@ -123,11 +123,11 @@ impl TcpProxy { .block_on(Udp2Tcp::new( listen_addr, endpoint, - Some(&TcpOptions { + TcpOptions { #[cfg(target_os = "linux")] fwmark: Some(crate::linux::TUNNEL_FW_MARK), ..TcpOptions::default() - }), + }, )) .map_err(Error::Udp2TcpError)?; |
