mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 20:02:24 -05:00 
			
		
		
		
	[chore]: Bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#2413)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.16.0. - [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								bffc67d764
							
						
					
				
			
			
				commit
				
					
						b576fbbdcb
					
				
			
		
					 34 changed files with 404 additions and 28 deletions
				
			
		
							
								
								
									
										35
									
								
								vendor/golang.org/x/crypto/ssh/tcpip.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										35
									
								
								vendor/golang.org/x/crypto/ssh/tcpip.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -5,6 +5,7 @@ | |||
| package ssh | ||||
| 
 | ||||
| import ( | ||||
| 	"context" | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"io" | ||||
|  | @ -332,6 +333,40 @@ func (l *tcpListener) Addr() net.Addr { | |||
| 	return l.laddr | ||||
| } | ||||
| 
 | ||||
| // DialContext initiates a connection to the addr from the remote host. | ||||
| // | ||||
| // The provided Context must be non-nil. If the context expires before the | ||||
| // connection is complete, an error is returned. Once successfully connected, | ||||
| // any expiration of the context will not affect the connection. | ||||
| // | ||||
| // See func Dial for additional information. | ||||
| func (c *Client) DialContext(ctx context.Context, n, addr string) (net.Conn, error) { | ||||
| 	if err := ctx.Err(); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	type connErr struct { | ||||
| 		conn net.Conn | ||||
| 		err  error | ||||
| 	} | ||||
| 	ch := make(chan connErr) | ||||
| 	go func() { | ||||
| 		conn, err := c.Dial(n, addr) | ||||
| 		select { | ||||
| 		case ch <- connErr{conn, err}: | ||||
| 		case <-ctx.Done(): | ||||
| 			if conn != nil { | ||||
| 				conn.Close() | ||||
| 			} | ||||
| 		} | ||||
| 	}() | ||||
| 	select { | ||||
| 	case res := <-ch: | ||||
| 		return res.conn, res.err | ||||
| 	case <-ctx.Done(): | ||||
| 		return nil, ctx.Err() | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // Dial initiates a connection to the addr from the remote host. | ||||
| // The resulting connection has a zero LocalAddr() and RemoteAddr(). | ||||
| func (c *Client) Dial(n, addr string) (net.Conn, error) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue