File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ NAME=sshfront
2
2
OWNER =gliderlabs
3
3
ARCH =$(shell uname -m)
4
4
RMFLAG =--rm
5
- VERSION =0.2.0
5
+ VERSION =0.2.1
6
6
7
7
build :
8
8
mkdir -p build/Linux && GOOS=linux CGO_ENABLED=0 go build -a \
9
- -ldflags " -X main.Version $( VERSION) " \
9
+ -ldflags " -X main.Version= $( VERSION) " \
10
10
-installsuffix cgo \
11
11
-o build/Linux/$(NAME )
12
12
mkdir -p build/Darwin && GOOS=darwin CGO_ENABLED=0 go build -a \
13
- -ldflags " -X main.Version $( VERSION) " \
13
+ -ldflags " -X main.Version= $( VERSION) " \
14
14
-installsuffix cgo \
15
15
-o build/Darwin/$(NAME )
16
16
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ echo " Stdin:"
3
+ cat
Original file line number Diff line number Diff line change @@ -221,7 +221,10 @@ func (h *sshHandler) handleExec(req *ssh.Request) {
221
221
h .channel .Close ()
222
222
return
223
223
}
224
- go io .Copy (stdinPipe , h .channel )
224
+ go func () {
225
+ defer stdinPipe .Close ()
226
+ io .Copy (stdinPipe , h .channel )
227
+ }()
225
228
226
229
if req .WantReply {
227
230
req .Reply (true , nil )
You can’t perform that action at this time.
0 commit comments