Skip to content

Commit 4872d14

Browse files
fix(vpn): pass dup'd FDs to tunnel (coder#16249)
We were duping the passed FDs and then not using the result.
1 parent 5841c0a commit 4872d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpn/dylib/lib.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func OpenTunnel(cReadFD, cWriteFD int32) int32 {
3939
return ErrDupWriteFD
4040
}
4141

42-
conn, err := vpn.NewBidirectionalPipe(uintptr(cReadFD), uintptr(cWriteFD))
42+
conn, err := vpn.NewBidirectionalPipe(uintptr(readFD), uintptr(writeFD))
4343
if err != nil {
4444
unix.Close(readFD)
4545
unix.Close(writeFD)

0 commit comments

Comments
 (0)