kubenetworks/kubevpn

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

Summary

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

package wintun

import (
    "embed"
)

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

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