fix(relay): log when accepting reservation without external addresses

Pull-Request: #4022.
This commit is contained in:
Max Inden
2023-06-05 05:36:09 +02:00
committed by GitHub
parent a4450d41c0
commit c9b386b2e3

View File

@ -134,6 +134,13 @@ pub struct ReservationReq {
impl ReservationReq {
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 {
type_pb: proto::HopMessageType::STATUS,
peer: None,