mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 07:52:25 -05:00 
			
		
		
		
	The maintainers messed with the v1.5.2 tag which causes Go checksum validation problems as the Go module proxy saw and recorded the original hash. This updates to 1.5.3 which doesn't have the issue.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build go1.17
 | |
| // +build go1.17
 | |
| 
 | |
| package websocket
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"crypto/tls"
 | |
| )
 | |
| 
 | |
| func doHandshake(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config) error {
 | |
| 	if err := tlsConn.HandshakeContext(ctx); err != nil {
 | |
| 		return err
 | |
| 	}
 | |
| 	if !cfg.InsecureSkipVerify {
 | |
| 		if err := tlsConn.VerifyHostname(cfg.ServerName); err != nil {
 | |
| 			return err
 | |
| 		}
 | |
| 	}
 | |
| 	return nil
 | |
| }
 |