vnt-dev / vnt

An efficient VPN. 简便高效的异地组网、内网穿透工具
https://rustvnt.com
Apache License 2.0
1.37k stars 163 forks source link

windows 11 , wintun启动不成功 #14

Closed muziling closed 1 year ago

muziling commented 1 year ago

用wintun的x86的dll

C:\Users\admin\Downloads\vnt-cli-i686-pc-windows-msvc-1.2.3.tar>vnt-cli.exe  -k kkkkktest
version 1.2.3
 ====== Connect Successfully ======
virtual_gateway:10.26.0.1
virtual_ip:10.26.0.3

然后程序就自动退出来,没有继续打印,在别的设备用--list能看到这个windows设备短暂online,然后offline

用wintun的amd64的dll,github 的release下载的是32位的吧

C:\Users\admin\Downloads\vnt-cli-i686-pc-windows-msvc-1.2.3.tar>vnt-cli.exe  -k kkkkktest
version 1.2.3
 ====== Connect Successfully ======
virtual_gateway:10.26.0.1
virtual_ip:10.26.0.3
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "wintun.dll not found LoadLibraryExW { source: Os { code: 193, kind: Uncategorized, message: \"%1 不是有效的 Win32 应用程序。\" } }" }', vnt-cli\src\main.rs:346:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
vnt-dev commented 1 year ago

是64位的系统吗,为什么要用32位的程序呢

muziling commented 1 year ago

github提供的windows vnt程序是32位的吧,和操作系统没关系,dll版本要和vnt exe的版本一致,比如都是32位或者都是64位。

vnt-dev commented 1 year ago

有64位程序:https://github.com/lbl8603/vnt/releases/download/1.2.3/vnt-cli-x86_64-pc-windows-msvc-1.2.3.tar.gz

muziling commented 1 year ago

好吧,被折叠了,没注意到, 换64位可以了。