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:
15
lower/config_windows.go
Normal file
15
lower/config_windows.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package lower
|
||||
|
||||
import "github.com/songgao/water"
|
||||
|
||||
var tuncfg = water.Config{
|
||||
DeviceType: water.TUN,
|
||||
PlatformSpecificParams: water.PlatformSpecificParams{
|
||||
ComponentID: "root\\tap0901",
|
||||
InterfaceName: "OpenVPN TAP-Windows6",
|
||||
Network: "192.168.233.0/24",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user