mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
@@ -75,10 +75,13 @@ pub struct Configuration {
|
|||||||
pub startup: bool,
|
pub startup: bool,
|
||||||
pub network: String,
|
pub network: String,
|
||||||
pub feature_set: HashMap<String, 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")]
|
#[serde(rename = "torv3-enabled")]
|
||||||
pub torv3_enabled: bool,
|
pub torv3_enabled: Option<bool>,
|
||||||
pub always_use_proxy: bool,
|
pub always_use_proxy: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
|||||||
Reference in New Issue
Block a user