mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +00:00
Change some nat_traversal
s to consider a prefix. (#550)
Change some `nat_traversal`s to consider a prefix. Transports should consider only the relevant address prefix.
This commit is contained in:
@ -120,6 +120,11 @@ impl fmt::Display for Multiaddr {
|
||||
}
|
||||
|
||||
impl Multiaddr {
|
||||
/// Create a new, empty multiaddress.
|
||||
pub fn empty() -> Multiaddr {
|
||||
Multiaddr { bytes: Vec::new() }
|
||||
}
|
||||
|
||||
/// Returns the raw bytes representation of the multiaddr.
|
||||
#[inline]
|
||||
pub fn into_bytes(self) -> Vec<u8> {
|
||||
|
Reference in New Issue
Block a user