mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	more work in progress actorizing the remaining parts of the switch
This commit is contained in:
		
							parent
							
								
									15b850be6e
								
							
						
					
					
						commit
						9834f222db
					
				
					 9 changed files with 111 additions and 101 deletions
				
			
		| 
						 | 
				
			
			@ -330,8 +330,11 @@ func (c *Core) EncryptionPublicKey() string {
 | 
			
		|||
// connected to any other nodes (effectively making you the root of a
 | 
			
		||||
// single-node network).
 | 
			
		||||
func (c *Core) Coords() []uint64 {
 | 
			
		||||
	loc := c.switchTable.getLocator()
 | 
			
		||||
	return wire_coordsBytestoUint64s(loc.getCoords())
 | 
			
		||||
	var coords []byte
 | 
			
		||||
	phony.Block(&c.router, func() {
 | 
			
		||||
		coords = c.router.table.self.getCoords()
 | 
			
		||||
	})
 | 
			
		||||
	return wire_coordsBytestoUint64s(coords)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Address gets the IPv6 address of the Yggdrasil node. This is always a /128
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue