Skip to content

Commit 531a72e

Browse files
authored
Merge pull request #19 from jaksi:bug
Close global requests, go mod tidy
2 parents f278934 + fb223da commit 531a72e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

conn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func handleChannel(sshChannel ssh.Channel, sshRequests <-chan *ssh.Request, conn
201201
for request := range sshRequests {
202202
requests <- &ChannelRequest{request, channel}
203203
}
204+
close(requests)
204205
}()
205206
conn.nextChannelID++
206207
return channel

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module github.com/jaksi/sshutils
22

33
go 1.19
44

5-
require (
6-
golang.org/x/crypto v0.2.0 // indirect
7-
golang.org/x/sys v0.2.0 // indirect
8-
)
5+
require golang.org/x/crypto v0.2.0
6+
7+
require golang.org/x/sys v0.2.0 // indirect

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ golang.org/x/crypto v0.2.0 h1:BRXPfhNivWL5Yq0BGQ39a2sW6t44aODpfxkWjYdzewE=
22
golang.org/x/crypto v0.2.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
33
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
44
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5+
golang.org/x/term v0.2.0 h1:z85xZCsEl7bi/KwbNADeBYoOP0++7W1ipu+aGnpwzRM=

0 commit comments

Comments
 (0)