mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
17 lines
287 B
Go
17 lines
287 B
Go
package wireguard
|
|
|
|
import (
|
|
"net"
|
|
"os"
|
|
|
|
"golang.zx2c4.com/wireguard/ipc"
|
|
)
|
|
|
|
func uapiOpen(name string) (*os.File, error) {
|
|
return ipc.UAPIOpen(name)
|
|
}
|
|
|
|
func uapiListen(interfaceName string, uapiFile *os.File) (net.Listener, error) {
|
|
return ipc.UAPIListen(interfaceName, uapiFile)
|
|
}
|