init
This commit is contained in:
14
clients/desktop/src/main.rs
Normal file
14
clients/desktop/src/main.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use vpnshare_core::{GatewayConfig, MtuPolicy};
|
||||
use vpnshare_proto::{encode_frame, FrameType, PROTOCOL_VERSION};
|
||||
|
||||
fn main() {
|
||||
let config = GatewayConfig::default();
|
||||
let mtu = MtuPolicy::default();
|
||||
let hello = encode_frame(FrameType::Hello, 0, 1, b"vpnshare-desktop").expect("static hello frame");
|
||||
|
||||
println!("VPN Share desktop client skeleton");
|
||||
println!("protocol=VSHP/{PROTOCOL_VERSION}");
|
||||
println!("default_gateway_mtu={}", config.default_mtu);
|
||||
println!("effective_tunnel_mtu={}", mtu.effective_tunnel_mtu());
|
||||
println!("hello_frame_bytes={}", hello.len());
|
||||
}
|
||||
Reference in New Issue
Block a user