ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wintun的动态库应该放到什么位置

da1234cao opened this issue · comments

问题描述

我尝试在windows下,使用gost的vpn功能。我阅读了gost文档-TUN/TAP设备。我下载了gost的代码,然后运行

git clone git@github.com:ginuerzh/gost.git
cd gost
go mod tidy
cd .\cmd\gost\

# 下面命令使用管理员权限执行
gost -L=tun://:0/SERVER_IP:8421?net=192.168.123.2/24

报错如下:

main.go:90: Failed to find the tap device in registry with specified ComponentId 'tap0901', TAP driver may be not installed
exit status 1

问题分析

我进入到代码里面。我注意到gost使用createTun来创建tun设备。createTun调用water-package来创建tun设备。

water-package的文档中,它有这样的描述。并没有提到使用wintun。

To use it with windows, you will need to install a tap driver, or OpenVPN client for windows.

疑问

下载wintun后,我该怎么做,以使用gost的vpn功能。

wintun只在v3版本中可用。