mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 08:02:26 -06:00 
			
		
		
		
	* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			396 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			396 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build go1.8
 | 
						|
 | 
						|
package websocket
 | 
						|
 | 
						|
import (
 | 
						|
	"crypto/tls"
 | 
						|
	"net/http/httptrace"
 | 
						|
)
 | 
						|
 | 
						|
func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error {
 | 
						|
	if trace.TLSHandshakeStart != nil {
 | 
						|
		trace.TLSHandshakeStart()
 | 
						|
	}
 | 
						|
	err := doHandshake(tlsConn, cfg)
 | 
						|
	if trace.TLSHandshakeDone != nil {
 | 
						|
		trace.TLSHandshakeDone(tlsConn.ConnectionState(), err)
 | 
						|
	}
 | 
						|
	return err
 | 
						|
}
 |