Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kt Connect
Commits
af4399e2
Unverified
Commit
af4399e2
authored
3 years ago
by
Fan Lin
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #255 from xyz-li/fix
fix nil writer
parents
e706f8df
5afe331b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/kt/exec/sshuttle/commands.go
+2
-3
pkg/kt/exec/sshuttle/commands.go
with
2 additions
and
3 deletions
+2
-3
pkg/kt/exec/sshuttle/commands.go
+
2
-
3
View file @
af4399e2
package
sshuttle
import
(
"bufio"
"fmt"
"io"
"os"
...
...
@@ -43,8 +42,8 @@ func (s *Cli) Connect(remoteHost, privateKeyPath string, remotePort int, DNSServ
stdoutPipe
,
_
:=
cmd
.
StdoutPipe
()
stderrPipe
,
_
:=
cmd
.
StderrPipe
()
if
stdoutPipe
!=
nil
&&
stderrPipe
!=
nil
{
go
io
.
Copy
(
bufio
.
NewWriter
(
nil
)
,
stdoutPipe
)
go
io
.
Copy
(
bufio
.
NewWriter
(
nil
)
,
stderrPipe
)
go
io
.
Copy
(
io
.
Discard
,
stdoutPipe
)
go
io
.
Copy
(
io
.
Discard
,
stderrPipe
)
}
}
return
cmd
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help