From c9b386b2e386d954e3727fc364f1faf7ee9d9d7e Mon Sep 17 00:00:00 2001 From: Max Inden Date: Mon, 5 Jun 2023 05:36:09 +0200 Subject: [PATCH] fix(relay): log when accepting reservation without external addresses Pull-Request: #4022. --- protocols/relay/src/protocol/inbound_hop.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/protocols/relay/src/protocol/inbound_hop.rs b/protocols/relay/src/protocol/inbound_hop.rs index c5886d93..27f2572a 100644 --- a/protocols/relay/src/protocol/inbound_hop.rs +++ b/protocols/relay/src/protocol/inbound_hop.rs @@ -134,6 +134,13 @@ pub struct ReservationReq { impl ReservationReq { pub async fn accept(self, addrs: Vec) -> 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 { type_pb: proto::HopMessageType::STATUS, peer: None,