Skip to content

Commit

Permalink
🐞 fix: 修复nightly错误
Browse files Browse the repository at this point in the history
issues: EasyTier#74
  • Loading branch information
m1m1sha committed May 5, 2024
1 parent 3a5332e commit d7574e6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
17 changes: 8 additions & 9 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion easytier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ network-interface = "1.1.1"
pathfinding = "4.9.1"

# for encryption
boringtun = { version = "0.6.0", optional = true }
boringtun = { git = "https://github.com/cloudflare/boringtun.git", optional = true }
ring = { version = "0.16", optional = true }
bitflags = "2.5"
aes-gcm = { version = "0.10.3", optional = true }
Expand Down
19 changes: 8 additions & 11 deletions easytier/src/tunnel/wireguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,14 @@ impl WgPeer {
let data = WgPeerData {
udp: self.udp.clone(),
endpoint: self.endpoint,
tunn: Arc::new(Mutex::new(
Tunn::new(
self.config.my_secret_key.clone(),
self.config.peer_public_key.clone(),
None,
None,
rand::thread_rng().next_u32(),
None,
)
.unwrap(),
)),
tunn: Arc::new(Mutex::new(Tunn::new(
self.config.my_secret_key.clone(),
self.config.peer_public_key.clone(),
None,
None,
rand::thread_rng().next_u32(),
None,
))),
wg_type: self.config.wg_type.clone(),
stopped: Arc::new(AtomicBool::new(false)),
};
Expand Down

0 comments on commit d7574e6

Please sign in to comment.