1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-12 21:00:27 +08:00

fix tun for windows

This commit is contained in:
fumiama
2021-12-29 20:00:45 +08:00
parent bfffcdd547
commit e6b19e093b
5 changed files with 105 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ type NIC struct {
// NewNIC 新建 TUN 网络接口卡
// 网卡地址为 ip, 所属子网为 subnet
func NewNIC(ip, subnet string) (n *NIC) {
ifce, err := water.New(water.Config{DeviceType: water.TUN})
ifce, err := water.New(tuncfg)
if err != nil {
panic(err)
}