Skip to content

Commit b00f6c4

Browse files
committed
Added From<(Ipv6Addr, u16)> for Socket<'static>
Signed-off-by: Jiahao XU <[email protected]>
1 parent 8213447 commit b00f6c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/changelog.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::*;
1111
/// - `From<Box<Path>> for Socket<'static>`
1212
/// - `From<(IpAddr, u16)> for Socket<'static>`
1313
/// - `From<(Ipv4Addr, u16)> for Socket<'static>`
14+
/// - `From<(Ipv6Addr, u16)> for Socket<'static>`
1415
///
1516
/// ## Changed
1617
/// - [`Session::request_port_forward`] now takes `impl Into<...>`

src/port_forwarding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ macro_rules! impl_from_addr {
6565

6666
impl_from_addr!(net::IpAddr);
6767
impl_from_addr!(net::Ipv4Addr);
68+
impl_from_addr!(net::Ipv6Addr);
6869

6970
impl<'a> From<Cow<'a, Path>> for Socket<'a> {
7071
fn from(path: Cow<'a, Path>) -> Self {

0 commit comments

Comments
 (0)