* 🐞 fix: 修复 1.80 nightly 编译错误错误

TODO: need fork boringtun and publish to crates.io before publishing easytier 

issues: https://github.com/KKRainbow/EasyTier/issues/74
This commit is contained in:
m1m1sha
2024-05-05 11:46:10 +08:00
committed by GitHub
parent 714667fdce
commit 0af32526f7
3 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -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 }
+8 -11
View File
@@ -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)),
};