mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
merge
Cargo.lock
This commit is contained in:
+2
-3
@@ -74,9 +74,10 @@ async-trait = "0.1.74"
|
|||||||
|
|
||||||
maplit = "1.0.2"
|
maplit = "1.0.2"
|
||||||
dashmap = "6.0"
|
dashmap = "6.0"
|
||||||
moka = { version = "0.12", features = ["future"] }
|
|
||||||
timedmap = "=1.0.1"
|
timedmap = "=1.0.1"
|
||||||
|
|
||||||
|
moka = { version = "0.12", features = ["future"] }
|
||||||
|
|
||||||
# for full-path zero-copy
|
# for full-path zero-copy
|
||||||
zerocopy = { version = "0.7.32", features = ["derive", "simd"] }
|
zerocopy = { version = "0.7.32", features = ["derive", "simd"] }
|
||||||
bytes = "1.5.0"
|
bytes = "1.5.0"
|
||||||
@@ -176,8 +177,6 @@ petgraph = "0.8.1"
|
|||||||
ordered_hash_map = "0.5.0"
|
ordered_hash_map = "0.5.0"
|
||||||
indexmap = "2.13.1"
|
indexmap = "2.13.1"
|
||||||
|
|
||||||
moka = { version = "0.12.13", features = ["future"] }
|
|
||||||
|
|
||||||
# for wireguard
|
# for wireguard
|
||||||
boringtun = { package = "boringtun-easytier", version = "0.6.1", optional = true }
|
boringtun = { package = "boringtun-easytier", version = "0.6.1", optional = true }
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use std::{
|
|||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use crate::utils::hostname;
|
||||||
use anyhow::Context as _;
|
use anyhow::Context as _;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use nix::{
|
use nix::{
|
||||||
@@ -233,10 +234,7 @@ fn machine_uid_seed() -> Option<String> {
|
|||||||
fn linux_machine_id_seed(machine_uid: &str) -> String {
|
fn linux_machine_id_seed(machine_uid: &str) -> String {
|
||||||
let mut seed = format!("machine_uid={machine_uid}");
|
let mut seed = format!("machine_uid={machine_uid}");
|
||||||
|
|
||||||
let hostname = gethostname::gethostname()
|
let hostname = hostname();
|
||||||
.to_string_lossy()
|
|
||||||
.trim()
|
|
||||||
.to_string();
|
|
||||||
if !hostname.is_empty() {
|
if !hostname.is_empty() {
|
||||||
seed.push_str("\nhostname=");
|
seed.push_str("\nhostname=");
|
||||||
seed.push_str(&hostname);
|
seed.push_str(&hostname);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use delegate::delegate;
|
|||||||
use derivative::Derivative;
|
use derivative::Derivative;
|
||||||
use derive_more::{AsMut, AsRef, Deref, DerefMut, From, IntoIterator};
|
use derive_more::{AsMut, AsRef, Deref, DerefMut, From, IntoIterator};
|
||||||
use prost::Message;
|
use prost::Message;
|
||||||
use serde::Serialize;
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
use sha2::{Digest, Sha256};
|
||||||
|
|
||||||
/// Generates a stable digest strictly within the lifecycle of the current process.
|
/// Generates a stable digest strictly within the lifecycle of the current process.
|
||||||
|
|||||||
Reference in New Issue
Block a user