We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac0114 commit 0791425Copy full SHA for 0791425
client/client.go
@@ -287,6 +287,11 @@ func (c *Client) connectStreams(chans <-chan ssh.NewChannel) {
287
for ch := range chans {
288
remote := string(ch.ExtraData())
289
socks := remote == "socks"
290
+ if socks && c.socksServer == nil {
291
+ c.Debugf("Denied socks request, please enable client socks remote.")
292
+ ch.Reject(ssh.Prohibited, "SOCKS5 is not enabled on the client")
293
+ continue
294
+ }
295
stream, reqs, err := ch.Accept()
296
if err != nil {
297
c.Debugf("Failed to accept stream: %s", err)
0 commit comments