tools: update submodules
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -11,8 +11,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CreateTUNFromFD(tun_fd int) (TUNDevice, string, error) {
|
func CreateTUNFromFD(tun_fd int) (TUNDevice, string, error) {
|
||||||
|
file := os.NewFile(uintptr(tun_fd), "/dev/tun")
|
||||||
tun := &nativeTun{
|
tun := &nativeTun{
|
||||||
fd: os.NewFile(uintptr(tun_fd), "/dev/tun"),
|
tunFile: file,
|
||||||
|
fd: file.Fd(),
|
||||||
events: make(chan TUNEvent, 5),
|
events: make(chan TUNEvent, 5),
|
||||||
errors: make(chan error, 5),
|
errors: make(chan error, 5),
|
||||||
nopi: true,
|
nopi: true,
|
||||||
|
|||||||
+1
-1
Submodule app/tools/wireguard updated: 36c4f1047e...abc9fae9e2
+1
-1
Submodule app/tools/wireguard-go updated: 5d6083df7e...8be1fc9c00
Reference in New Issue
Block a user