bugfix: missing #[serde(default)] for announce port (#5024)

This commit is contained in:
Jędrzej Stuczyński
2024-10-23 16:52:17 +01:00
committed by GitHub
parent 6fafd8c03a
commit d2df542280
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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<u16>,
#[serde(default)]
+1
View File
@@ -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<u16>,
/// Addresses to nym APIs from which the node gets the view of the network.