Skip to content

Commit

Permalink
vpn
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jun 4, 2024
1 parent c9e6ae7 commit c439a05
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions binaries/geph5-client/src/vpn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ impl VpnCapture {
}

pub fn vpn_whitelist(addr: IpAddr) {
WHITELIST.entry(addr).or_insert_with(|| {
tracing::warn!(addr = display(addr), "*** WHITELIST ***");
SingleWhitelister::new(addr)
});
#[cfg(target_os = "linux")]
{
WHITELIST.entry(addr).or_insert_with(|| {
tracing::warn!(addr = display(addr), "*** WHITELIST ***");
SingleWhitelister::new(addr)
});
}
}

#[cfg(target_os = "linux")]
Expand Down

0 comments on commit c439a05

Please sign in to comment.