Skip to content

Commit

Permalink
minor fixes and nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample committed Nov 29, 2024
1 parent d720a06 commit 1407e19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions nym-vpn-core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion nym-vpn-core/crates/nym-vpn-lib/src/wg_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ use std::{

use ipnetwork::{IpNetwork, Ipv4Network};
use nym_wg_gateway_client::GatewayData;
#[cfg(feature = "amnezia")]
use nym_wg_go::amnezia::AmneziaConfig;
#[cfg(target_os = "ios")]
use nym_wg_go::PeerEndpointUpdate;
use nym_wg_go::{amnezia::AmneziaConfig, wireguard_go, PeerConfig, PrivateKey, PublicKey};
use nym_wg_go::{wireguard_go, PeerConfig, PrivateKey, PublicKey};

#[cfg(any(target_os = "ios", target_os = "android"))]
use nym_wg_go::netstack;
Expand Down
2 changes: 1 addition & 1 deletion nym-vpn-core/crates/nym-wg-go/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#[cfg(feature = "amnezia")]
pub mod amnezia;

#[cfg(any(target_os = "ios", target_os = "android"))]
pub mod netstack;
pub mod uapi;
pub mod wireguard_go;
Expand Down
2 changes: 1 addition & 1 deletion nym-vpn-core/crates/nym-wg-go/src/wireguard_go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Config {
config_builder.add("fwmark", fwmark.to_string().as_str());
}

#[cfg(all(feature = "amnezia"))]
#[cfg(feature = "amnezia")]
if let Some(azwg_config) = &self.interface.azwg_config {
azwg_config.append_to(&mut config_builder);
}
Expand Down

0 comments on commit 1407e19

Please sign in to comment.