diff --git a/Cargo.lock b/Cargo.lock index 79d728ba92a..a7f74567ea2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3152,7 +3152,7 @@ dependencies = [ [[package]] name = "libp2p-upnp" -version = "0.1.0" +version = "0.1.1" dependencies = [ "futures", "futures-timer", diff --git a/Cargo.toml b/Cargo.toml index 3c3adb74575..be26badcc30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,7 +97,7 @@ libp2p-pnet = { version = "0.23.0", path = "transports/pnet" } libp2p-quic = { version = "0.9.2", path = "transports/quic" } libp2p-relay = { version = "0.16.1", path = "protocols/relay" } libp2p-rendezvous = { version = "0.13.0", path = "protocols/rendezvous" } -libp2p-upnp = { version = "0.1.0", path = "protocols/upnp" } +libp2p-upnp = { version = "0.1.1", path = "protocols/upnp" } libp2p-request-response = { version = "0.25.1", path = "protocols/request-response" } libp2p-server = { version = "0.12.3", path = "misc/server" } libp2p-swarm = { version = "0.43.4", path = "swarm" } diff --git a/protocols/upnp/CHANGELOG.md b/protocols/upnp/CHANGELOG.md index 51d1510cddd..13b2f88e853 100644 --- a/protocols/upnp/CHANGELOG.md +++ b/protocols/upnp/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.1.1 - unreleased + +- Fix port mapping protocol used for a UDP multiaddress. + See [PR 4542](https://github.com/libp2p/rust-libp2p/pull/4542). + ## 0.1.0 - Initial version diff --git a/protocols/upnp/Cargo.toml b/protocols/upnp/Cargo.toml index 53a3d2b7813..4121745de42 100644 --- a/protocols/upnp/Cargo.toml +++ b/protocols/upnp/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-upnp" edition = "2021" rust-version = "1.60.0" description = "UPnP support for libp2p transports" -version = "0.1.0" +version = "0.1.1" license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" keywords = ["peer-to-peer", "libp2p", "networking"] diff --git a/protocols/upnp/src/behaviour.rs b/protocols/upnp/src/behaviour.rs index f582e96e1e7..063734d9b5b 100644 --- a/protocols/upnp/src/behaviour.rs +++ b/protocols/upnp/src/behaviour.rs @@ -544,7 +544,7 @@ fn multiaddr_to_socketaddr_protocol( Some(multiaddr::Protocol::Udp(port)) => { return Ok(( SocketAddr::V4(SocketAddrV4::new(ipv4, port)), - PortMappingProtocol::TCP, + PortMappingProtocol::UDP, )); } _ => {}