mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 18:41:22 +00:00
fix(relay): log when accepting reservation without external addresses
Pull-Request: #4022.
This commit is contained in:
@ -134,6 +134,13 @@ pub struct ReservationReq {
|
|||||||
|
|
||||||
impl ReservationReq {
|
impl ReservationReq {
|
||||||
pub async fn accept(self, addrs: Vec<Multiaddr>) -> Result<(), UpgradeError> {
|
pub async fn accept(self, addrs: Vec<Multiaddr>) -> Result<(), UpgradeError> {
|
||||||
|
if addrs.is_empty() {
|
||||||
|
log::debug!(
|
||||||
|
"Accepting relay reservation without providing external addresses of local node. \
|
||||||
|
Thus the remote node might not be able to advertise its relayed address."
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
let msg = proto::HopMessage {
|
let msg = proto::HopMessage {
|
||||||
type_pb: proto::HopMessageType::STATUS,
|
type_pb: proto::HopMessageType::STATUS,
|
||||||
peer: None,
|
peer: None,
|
||||||
|
Reference in New Issue
Block a user