mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	fix nil pointer when attempting to access node config
This commit is contained in:
		
							parent
							
								
									414c100125
								
							
						
					
					
						commit
						e67ee9232d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -271,7 +271,7 @@ func main() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Setup the Yggdrasil node itself. The node{} type includes a Core, so we
 | 
						// Setup the Yggdrasil node itself. The node{} type includes a Core, so we
 | 
				
			||||||
	// don't need to create this manually.
 | 
						// don't need to create this manually.
 | 
				
			||||||
	n := node{}
 | 
						n := node{config: cfg}
 | 
				
			||||||
	// Now start Yggdrasil - this starts the DHT, router, switch and other core
 | 
						// Now start Yggdrasil - this starts the DHT, router, switch and other core
 | 
				
			||||||
	// components needed for Yggdrasil to operate
 | 
						// components needed for Yggdrasil to operate
 | 
				
			||||||
	if err = n.core.Start(cfg, logger); err != nil {
 | 
						if err = n.core.Start(cfg, logger); err != nil {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue