Skip to content

Commit

Permalink
Fix start daita
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 14, 2024
1 parent b0c10b7 commit 7903a88
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions talpid-wireguard/src/wireguard_go/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,7 @@ impl Tunnel for WgGoTunnel {

log::info!("Initializing DAITA for wireguard device");
let config = &self.as_state().config;

let peer_public_key = match config.exit_peer.as_ref() {
Some(exit) => &exit.public_key,
None => &config.entry_peer.public_key,
};
let peer_public_key = &config.entry_peer.public_key;

self.as_state()
.tunnel_handle
Expand Down

0 comments on commit 7903a88

Please sign in to comment.