mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
cleanup: rename use_proxy_always to always_use_proxy to match cfg
This renames all occurences of use_proxy_always to always_use_proxy to keep it inline with config values. This was a bit confusing. Only significant change is that the payload in the plugins init requests also contained the old name. No plugin currently seems to make use of this variable yet. The old name 'use_proxy_always' is added when deprecated APIs is enabled. Changelog-Deprecated: Plugins: Renames plugin init 'use_proxy_always' to 'always_use_proxy'
This commit is contained in:
committed by
Rusty Russell
parent
0550ffa9db
commit
24ea498350
@@ -1821,7 +1821,10 @@ plugin_populate_init_request(struct plugin *plugin, struct jsonrpc_request *req)
|
||||
if (ld->proxyaddr) {
|
||||
json_add_address(req->stream, "proxy", ld->proxyaddr);
|
||||
json_add_bool(req->stream, "torv3-enabled", ld->config.use_v3_autotor);
|
||||
json_add_bool(req->stream, "use_proxy_always", ld->use_proxy_always);
|
||||
json_add_bool(req->stream, "always_use_proxy", ld->always_use_proxy);
|
||||
if (deprecated_apis)
|
||||
json_add_bool(req->stream, "use_proxy_always",
|
||||
ld->always_use_proxy);
|
||||
}
|
||||
json_object_start(req->stream, "feature_set");
|
||||
for (enum feature_place fp = 0; fp < NUM_FEATURE_PLACE; fp++) {
|
||||
|
||||
Reference in New Issue
Block a user