mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Merge pull request #469 from neilalexander/fix468
Don't send IP back twice with getPeers
This commit is contained in:
		
						commit
						f208b7f542
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -103,7 +103,6 @@ func (a *AdminSocket) Init(c *yggdrasil.Core, state *config.NodeState, log *log.
 | 
			
		|||
			addr := *address.AddrForNodeID(crypto.GetNodeID(&p.PublicKey))
 | 
			
		||||
			so := net.IP(addr[:]).String()
 | 
			
		||||
			peers[so] = Info{
 | 
			
		||||
				"ip":          so,
 | 
			
		||||
				"port":        p.Port,
 | 
			
		||||
				"uptime":      p.Uptime.Seconds(),
 | 
			
		||||
				"bytes_sent":  p.BytesSent,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue