kubenetworks/kubevpn

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

Summary

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

package wintun

import (
    "embed"
)

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

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