diff --git a/.gitignore b/.gitignore index 54b02da..144b30b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target *.so +.id +.client +.output \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 16e27e6..9c2bdfb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1422,7 +1422,7 @@ dependencies = [ [[package]] name = "sdlan-sn-rs" version = "0.1.0" -source = "git+http://git.asxalex.pw/sdlan-v2/sdlan-rs.git#f320526f2dc1f6c3154b9ade81c556af0d068378" +source = "git+https://git.asxalex.pw/sdlan-v2/sdlan-rs.git#f320526f2dc1f6c3154b9ade81c556af0d068378" dependencies = [ "aes", "byteorder", diff --git a/Cargo.toml b/Cargo.toml index 5cb36b8..e9379d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ prost = "0.12.6" prost-build = "0.12.6" rsa = "0.9.6" # sdlan-sn-rs = { git = "ssh://git@git.asxalex.pw/sdlan-v2/sdlan-rs.git" } -sdlan-sn-rs = { git = "http://git.asxalex.pw/sdlan-v2/sdlan-rs.git" } +sdlan-sn-rs = { git = "https://git.asxalex.pw/sdlan-v2/sdlan-rs.git" } structopt = "0.3.26" tokio = { version = "1.38.0", futures = ["full"] } tokio-util = "0.7.11" diff --git a/src/network/tun_win.rs b/src/network/tun_win.rs index 98113b0..c75193c 100644 --- a/src/network/tun_win.rs +++ b/src/network/tun_win.rs @@ -89,7 +89,7 @@ fn create_wintun(path: &str,name: &str) -> Iface { Iface { adapter, session, name: name.to_owned()} } -pub fn new_iface(name: &str, mode: Mode) -> Iface { +pub fn new_iface(name: &str, _mode: Mode) -> Iface { create_wintun("./wintun.dll", name) // Ok(Box::new(create_wintun("/path/to/file"))) }