Add new dependencies and implement TUN interface initialization

- Updated Cargo.toml to include `etherparse` and enable async feature for `tun-rs`.
- Added `ip_match_network` function in network module for IP matching.
- Implemented TUN interface initialization in `tun.rs`.
- Enhanced client handling in `client.rs` to support new features and improved message handling.
- Refactored router messages to use a structured `VpnPacket`.
- Updated settings for spell checking in VSCode.
This commit is contained in:
2026-02-27 11:30:08 +01:00
parent 0c5b860324
commit fb9d6ca9c8
8 changed files with 241 additions and 20 deletions

View File

@@ -22,5 +22,6 @@ anyhow = "1.0.102"
uuid = { version = "1.21.0", features = ["v4", "serde"] }
ipnet = { version = "2.11.0", features = ["serde"] }
base64 = "0.22.1"
tun-rs = "2.8.2"
tun-rs = { version = "2.8.2", features = ["async"] }
chrono = "0.4.44"
etherparse = "0.19.0"