pkg/driver/wintun/x86.go
//go:build windows && (x86 || 386)
package wintun
import (
"embed"
)
//go:embed bin/x86/wintun.dll
var wintunFs embed.FS
func InstallWintunDriver() error {
bytes, err := wintunFs.ReadFile("bin/x86/wintun.dll")
if err != nil {
return err
}
return copyDriver(bytes)
}