Skip to content

Commit

Permalink
Fix non-android platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Mar 3, 2025
1 parent 1396839 commit 693ff94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions talpid-types/src/net/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use ipnetwork::{IpNetwork, Ipv4Network, Ipv6Network};
#[cfg(target_os = "android")]
use jnix::FromJava;
use obfuscation::ObfuscatorConfig;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -565,8 +566,9 @@ pub fn all_of_the_internet() -> Vec<ipnetwork::IpNetwork> {
///
/// Information about the host's connectivity, such as the preesence of
/// configured IPv4 and/or IPv6.
#[derive(Debug, Clone, Copy, PartialEq, FromJava)]
#[jnix(package = "net.mullvad.talpid.model")]
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(target_os = "android", derive(FromJava))]
#[cfg_attr(target_os = "android", jnix(package = "net.mullvad.talpid.model"))]
pub enum Connectivity {
Status {
/// Whether IPv4 connectivity seems to be available on the host.
Expand Down

0 comments on commit 693ff94

Please sign in to comment.