cln-plugin: Make the proxy-related configuration Option<>

These are only populated if a proxy was specified, see
lightningd/plugin.c:1855, so we were getting upset when we expected
them and they weren't set.
This commit is contained in:
Christian Decker 2022-06-21 17:11:07 +02:00
parent 5ec424bc86
commit e6442d798e

View File

@ -75,10 +75,13 @@ pub struct Configuration {
pub startup: bool,
pub network: String,
pub feature_set: HashMap<String, String>,
pub proxy: ProxyInfo,
// The proxy related options are only populated if a proxy was
// configured.
pub proxy: Option<ProxyInfo>,
#[serde(rename = "torv3-enabled")]
pub torv3_enabled: bool,
pub always_use_proxy: bool,
pub torv3_enabled: Option<bool>,
pub always_use_proxy: Option<bool>,
}
#[derive(Clone, Debug, Deserialize)]