mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-06 17:59:11 +00:00
support win7 and reduce win mem usage (#128)
This commit is contained in:
Generated
+1
-2
@@ -5491,8 +5491,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tun"
|
name = "tun"
|
||||||
version = "0.6.1"
|
version = "0.6.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/EasyTier/rust-tun.git?rev=e4fd1cd#e4fd1cdd5321ac1ad6f19954e982194688b95aff"
|
||||||
checksum = "0adb9992bbd5ca76f3847ed579ad4ee8defb2ec2eea918cceef17ccc66fa4fd4"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|||||||
+1
-1
@@ -85,7 +85,7 @@ http = { version = "1", default-features = false, features = [
|
|||||||
tokio-rustls = { version = "0.26", default-features = false, optional = true }
|
tokio-rustls = { version = "0.26", default-features = false, optional = true }
|
||||||
|
|
||||||
# for tap device
|
# for tap device
|
||||||
tun = { version = "0.6.1", features = ["async"] }
|
tun = { git = "https://github.com/EasyTier/rust-tun.git", features = ["async"], rev = "e4fd1cd" }
|
||||||
# for net ns
|
# for net ns
|
||||||
nix = { version = "0.27", features = ["sched", "socket", "ioctl"] }
|
nix = { version = "0.27", features = ["sched", "socket", "ioctl"] }
|
||||||
|
|
||||||
|
|||||||
@@ -289,6 +289,12 @@ impl VirtualNic {
|
|||||||
config.name(format!("et{}_{}_{}", self.dev_name, c, s));
|
config.name(format!("et{}_{}_{}", self.dev_name, c, s));
|
||||||
// set a temporary address
|
// set a temporary address
|
||||||
config.address(format!("172.0.{}.3", c).parse::<IpAddr>().unwrap());
|
config.address(format!("172.0.{}.3", c).parse::<IpAddr>().unwrap());
|
||||||
|
|
||||||
|
config.platform(|config| {
|
||||||
|
config.skip_config(true);
|
||||||
|
config.guid(None);
|
||||||
|
config.ring_cap(Some(config.min_ring_cap() * 2));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.queue_num != 1 {
|
if self.queue_num != 1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user