Skip to content

Commit 4c3289a

Browse files
committed
tunnel: bump all tools
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 79376bc commit 4c3289a

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

tunnel/tools/libwg-go/api-android.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ func wgTurnOn(interfaceName string, tunFd int32, settings string) int32 {
119119
}
120120
}
121121

122-
device.Up()
122+
err = device.Up()
123+
if err != nil {
124+
logger.Errorf("Unable to bring up device: %v", err)
125+
uapiFile.Close()
126+
device.Close()
127+
return -1
128+
}
123129
logger.Verbosef("Device started")
124130

125131
var i int32
@@ -129,7 +135,9 @@ func wgTurnOn(interfaceName string, tunFd int32, settings string) int32 {
129135
}
130136
}
131137
if i == math.MaxInt32 {
132-
unix.Close(int(tunFd))
138+
logger.Errorf("Unable to find empty handle")
139+
uapiFile.Close()
140+
device.Close()
133141
return -1
134142
}
135143
tunnelHandles[i] = TunnelHandle{device: device, uapi: uapi}

tunnel/tools/libwg-go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ go 1.15
55
require (
66
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect
77
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
8-
golang.zx2c4.com/wireguard v0.0.20201119-0.20210126220548-d669c78c4306
8+
golang.zx2c4.com/wireguard v0.0.0-20210211144856-ef8115f63b22
99
)

tunnel/tools/libwg-go/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn
1818
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
1919
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
2020
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
21-
golang.zx2c4.com/wireguard v0.0.20201119-0.20210126220548-d669c78c4306 h1:z7W9tlhU/KwkZWSX6QCfZXBcDpIa1JYANldQ/gFJj44=
22-
golang.zx2c4.com/wireguard v0.0.20201119-0.20210126220548-d669c78c4306/go.mod h1:r0ExowOoGFfDoLDxx+M9SYbNVsoZ0xviLL+K4f2mt+A=
21+
golang.zx2c4.com/wireguard v0.0.0-20210211144856-ef8115f63b22 h1:7Ct1Jps4o4u2hBFWrg8Rt65VmXfMPTeR0OSXxdq8gMk=
22+
golang.zx2c4.com/wireguard v0.0.0-20210211144856-ef8115f63b22/go.mod h1:r0ExowOoGFfDoLDxx+M9SYbNVsoZ0xviLL+K4f2mt+A=

tunnel/tools/wireguard-tools

Submodule wireguard-tools updated from 265e81a to e8fa0f6

0 commit comments

Comments
 (0)