bugfix: missing #[serde(default)] for announce port (#5024)
This commit is contained in:
committed by
GitHub
parent
6fafd8c03a
commit
d2df542280
@@ -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)]
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user