mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	add one TODO comment and run gofmt
This commit is contained in:
		
							parent
							
								
									cd77727c1e
								
							
						
					
					
						commit
						996c6b4f47
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38,6 +38,7 @@ func (t *tcptls) init(tcp *tcp) {
 | 
			
		|||
 | 
			
		||||
	certBuf := &bytes.Buffer{}
 | 
			
		||||
 | 
			
		||||
	// TODO: because NotAfter is finite, we should add some mechanism to regenerate the certificate and restart the listeners periodically for nodes with very high uptimes. Perhaps regenerate certs and restart listeners every few months or so.
 | 
			
		||||
	pubtemp := x509.Certificate{
 | 
			
		||||
		SerialNumber: big.NewInt(1),
 | 
			
		||||
		Subject: pkix.Name{
 | 
			
		||||
| 
						 | 
				
			
			@ -65,7 +66,7 @@ func (t *tcptls) init(tcp *tcp) {
 | 
			
		|||
	t.config = &tls.Config{
 | 
			
		||||
		RootCAs: cpool,
 | 
			
		||||
		Certificates: []tls.Certificate{
 | 
			
		||||
			tls.Certificate{
 | 
			
		||||
			{
 | 
			
		||||
				Certificate: [][]byte{derbytes},
 | 
			
		||||
				PrivateKey:  edpriv,
 | 
			
		||||
			},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue