Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4872d14

Browse files
fix(vpn): pass dup'd FDs to tunnel (#16249)
We were duping the passed FDs and then not using the result.
1 parent5841c0a commit4872d14

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
returnErrDupWriteFD
4040
}
4141

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp