mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +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:
parent
5ec424bc86
commit
e6442d798e
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user