Skip to content

Commit

Permalink
cln-plugin: Make the proxy-related configuration Option<>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cdecker committed Jun 21, 2022
1 parent eb9e7f5 commit 9e912f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 9e912f8

Please sign in to comment.