mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Update comments
This commit is contained in:
		
							parent
							
								
									d16505e417
								
							
						
					
					
						commit
						6b0b704645
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -350,13 +350,14 @@ func (c *Conn) Close() (err error) {
 | 
			
		|||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// LocalAddr returns the complete node ID of the local side of the connection.
 | 
			
		||||
// This is always going to return your own node's node ID.
 | 
			
		||||
// LocalAddr returns the complete public key of the local side of the
 | 
			
		||||
// connection. This is always going to return your own node's node ID.
 | 
			
		||||
func (c *Conn) LocalAddr() net.Addr {
 | 
			
		||||
	return &c.core.boxPub
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// RemoteAddr returns the complete node ID of the remote side of the connection.
 | 
			
		||||
// RemoteAddr returns the complete public key of the remote side of the
 | 
			
		||||
// connection.
 | 
			
		||||
func (c *Conn) RemoteAddr() net.Addr {
 | 
			
		||||
	if c.session != nil {
 | 
			
		||||
		return &c.session.theirPermPub
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue