mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Remove TLS root validation
This is just too complicated compared to the per-peer/per-listener/per-interface password approach.
This commit is contained in:
		
							parent
							
								
									6dc847de31
								
							
						
					
					
						commit
						45b773eade
					
				
					 7 changed files with 29 additions and 196 deletions
				
			
		| 
						 | 
				
			
			@ -42,8 +42,8 @@ func (m *Yggdrasil) StartAutoconfigure() error {
 | 
			
		|||
// StartJSON starts a node with the given JSON config. You can get JSON config
 | 
			
		||||
// (rather than HJSON) by using the GenerateConfigJSON() function
 | 
			
		||||
func (m *Yggdrasil) StartJSON(configjson []byte) error {
 | 
			
		||||
  setMemLimitIfPossible()
 | 
			
		||||
  
 | 
			
		||||
	setMemLimitIfPossible()
 | 
			
		||||
 | 
			
		||||
	logger := log.New(m.log, "", 0)
 | 
			
		||||
	logger.EnableLevel("error")
 | 
			
		||||
	logger.EnableLevel("warn")
 | 
			
		||||
| 
						 | 
				
			
			@ -70,9 +70,6 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
 | 
			
		|||
			}
 | 
			
		||||
			options = append(options, core.AllowedPublicKey(k[:]))
 | 
			
		||||
		}
 | 
			
		||||
		for _, root := range m.config.RootCertificates {
 | 
			
		||||
			options = append(options, core.RootCertificate(*root))
 | 
			
		||||
		}
 | 
			
		||||
		var err error
 | 
			
		||||
		m.core, err = core.New(m.config.Certificate, logger, options...)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue