kubenetworks/kubevpn

View on GitHub
pkg/driver/wintun/amd64.go

Summary

Maintainability
A
0 mins
Test Coverage
//go:build windows && amd64

package wintun

import (
    "embed"
)

//go:embed bin/amd64/wintun.dll
var wintunFs embed.FS

func InstallWintunDriver() error {
    bytes, err := wintunFs.ReadFile("bin/amd64/wintun.dll")
    if err != nil {
        return err
    }
    return copyDriver(bytes)
}