From 54fc904c15e3a810f2bdda70da1dfaae85b25e9d Mon Sep 17 00:00:00 2001 From: Karolin Varner Date: Tue, 8 Apr 2025 23:27:03 +0200 Subject: [PATCH] fix(rp): Protocol version field should be optional --- rp/src/exchange.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rp/src/exchange.rs b/rp/src/exchange.rs index 32b09ac..bbbac0d 100644 --- a/rp/src/exchange.rs +++ b/rp/src/exchange.rs @@ -25,6 +25,7 @@ pub struct ExchangePeer { /// The IPs that are allowed for this peer. pub allowed_ips: Option, /// The protocol version used by the peer. + #[serde(default)] pub protocol_version: ProtocolVersion, }