From d2df5422802f2306bf0580d2b5993919f65756dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Wed, 23 Oct 2024 16:52:17 +0100 Subject: [PATCH] bugfix: missing #[serde(default)] for announce port (#5024) --- nym-node/src/config/mixnode.rs | 1 + nym-node/src/config/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/nym-node/src/config/mixnode.rs b/nym-node/src/config/mixnode.rs index f5a56e128a..c938610255 100644 --- a/nym-node/src/config/mixnode.rs +++ b/nym-node/src/config/mixnode.rs @@ -46,6 +46,7 @@ pub struct Verloc { /// will use. /// Useful when the node is behind a proxy. #[serde(deserialize_with = "de_maybe_port")] + #[serde(default)] pub announce_port: Option, #[serde(default)] diff --git a/nym-node/src/config/mod.rs b/nym-node/src/config/mod.rs index 60ed79ab20..65ca8983d7 100644 --- a/nym-node/src/config/mod.rs +++ b/nym-node/src/config/mod.rs @@ -421,6 +421,7 @@ pub struct Mixnet { /// will use. /// Useful when the node is behind a proxy. #[serde(deserialize_with = "de_maybe_port")] + #[serde(default)] pub announce_port: Option, /// Addresses to nym APIs from which the node gets the view of the network.