MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_proxy

Function get_proxy

plugins/bip353-plugin/src/config.rs:3–13  ·  view source on GitHub ↗
(plugin: Plugin<()>)

Source from the content-addressed store, hash-verified

1use cln_plugin::{Plugin, messages::ProxyInfo};
2
3pub fn get_proxy(plugin: Plugin<()>) -> Option<ProxyInfo> {
4 match plugin.configuration().always_use_proxy {
5 Some(use_proxy) => {
6 if !use_proxy {
7 return None;
8 }
9 }
10 None => return None,
11 };
12 plugin.configuration().proxy
13}

Callers 1

Calls 1

configurationMethod · 0.80

Tested by

no test coverage detected