glide up
This commit is contained in:
		
							
								
								
									
										3
									
								
								vendor/golang.org/x/crypto/ssh/client.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/golang.org/x/crypto/ssh/client.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -14,7 +14,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Client implements a traditional SSH client that supports shells,
 | 
			
		||||
// subprocesses, port forwarding and tunneled dialing.
 | 
			
		||||
// subprocesses, TCP port/streamlocal forwarding and tunneled dialing.
 | 
			
		||||
type Client struct {
 | 
			
		||||
	Conn
 | 
			
		||||
 | 
			
		||||
@@ -60,6 +60,7 @@ func NewClient(c Conn, chans <-chan NewChannel, reqs <-chan *Request) *Client {
 | 
			
		||||
		conn.forwards.closeAll()
 | 
			
		||||
	}()
 | 
			
		||||
	go conn.forwards.handleChannels(conn.HandleChannelOpen("forwarded-tcpip"))
 | 
			
		||||
	go conn.forwards.handleChannels(conn.HandleChannelOpen("forwarded-streamlocal@openssh.com"))
 | 
			
		||||
	return conn
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user