feat(server): add remote_addr method to AddrStream
This commit is contained in:
		| @@ -199,6 +199,12 @@ mod addr_stream { | |||||||
|                 remote_addr: addr, |                 remote_addr: addr, | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         /// Returns the remote (peer) address of this connection. | ||||||
|  |         #[inline] | ||||||
|  |         pub fn remote_addr(&self) -> SocketAddr { | ||||||
|  |             self.remote_addr | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     impl Read for AddrStream { |     impl Read for AddrStream { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user