🐞 fix: 修复nightly错误 (https://github.com/KKRainbow/EasyTier/issues/74) (#75)
* 🐞 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:
+1
-1
@@ -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 }
|
||||
|
||||
@@ -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)),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user