diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-07-08 16:39:56 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-07-13 15:57:38 +0200 |
| commit | e50e220dbc248f84903f85bad97c4e609415ff54 (patch) | |
| tree | 1840303ad51bcb87b7adcac6f0e3f80354f4235f /talpid-core/src | |
| parent | c369659c38dc11ec780f32aea491f55251d244a5 (diff) | |
| download | mullvadvpn-e50e220dbc248f84903f85bad97c4e609415ff54.tar.xz mullvadvpn-e50e220dbc248f84903f85bad97c4e609415ff54.zip | |
Fix netlink-rs usage
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/routing/linux.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/talpid-core/src/routing/linux.rs b/talpid-core/src/routing/linux.rs index 6dc5489de3..72ebe5b27c 100644 --- a/talpid-core/src/routing/linux.rs +++ b/talpid-core/src/routing/linux.rs @@ -629,7 +629,8 @@ impl RouteManagerImpl { let mut add_message = self .handle .route() - .add_v4() + .add() + .v4() .destination_prefix(v4_prefix.ip(), v4_prefix.prefix()); if v4_prefix.prefix() > 0 && v4_prefix.prefix() < 32 { @@ -653,7 +654,8 @@ impl RouteManagerImpl { let mut add_message = self .handle .route() - .add_v6() + .add() + .v6() .destination_prefix(v6_prefix.ip(), v6_prefix.prefix()); if v6_prefix.prefix() > 0 && v6_prefix.prefix() < 128 { |
