mirror of
https://github.com/qdm12/gluetun.git
synced 2026-08-05 03:43:24 +02:00
18 lines
286 B
Go
18 lines
286 B
Go
//go:build !linux
|
|
|
|
package wireguard
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.zx2c4.com/wireguard/tun"
|
|
)
|
|
|
|
func createTUN(name string, mtu int, _ bool) (tun.Device, error) { //nolint:ireturn
|
|
return tun.CreateTUN(name, mtu)
|
|
}
|
|
|
|
func OpenTUNFile(_ string) (*os.File, error) {
|
|
panic("not implemented")
|
|
}
|