Skip to content

Commit 81726c0

Browse files
committed
add parameter --alt-addr and use that the same way as --bind-addr
Signed-off-by: Max Rantil <[email protected]>
1 parent 11586ab commit 81726c0

File tree

13 files changed

+461
-276
lines changed

13 files changed

+461
-276
lines changed

.msggen.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,7 @@
15891589
"ListConfigs.configs.addr": 47,
15901590
"ListConfigs.configs.alias": 30,
15911591
"ListConfigs.configs.allow-deprecated-apis": 14,
1592+
"ListConfigs.configs.alt-addr": 71,
15921593
"ListConfigs.configs.always-use-proxy": 17,
15931594
"ListConfigs.configs.announce-addr": 48,
15941595
"ListConfigs.configs.announce-addr-discovered": 54,
@@ -1672,6 +1673,10 @@
16721673
"ListConfigs.configs.allow-deprecated-apis.source": 2,
16731674
"ListConfigs.configs.allow-deprecated-apis.value_bool": 1
16741675
},
1676+
"ListconfigsConfigsAlt-addr": {
1677+
"ListConfigs.configs.alt-addr.sources[]": 2,
1678+
"ListConfigs.configs.alt-addr.values_str[]": 1
1679+
},
16751680
"ListconfigsConfigsAlways-use-proxy": {
16761681
"ListConfigs.configs.always-use-proxy.source": 2,
16771682
"ListConfigs.configs.always-use-proxy.value_bool": 1
@@ -6678,6 +6683,18 @@
66786683
"added": "pre-v0.10.1",
66796684
"deprecated": false
66806685
},
6686+
"ListConfigs.configs.alt-addr": {
6687+
"added": "v24.05",
6688+
"deprecated": false
6689+
},
6690+
"ListConfigs.configs.alt-addr.sources[]": {
6691+
"added": "v24.05",
6692+
"deprecated": false
6693+
},
6694+
"ListConfigs.configs.alt-addr.values_str[]": {
6695+
"added": "v24.05",
6696+
"deprecated": false
6697+
},
66816698
"ListConfigs.configs.always-use-proxy": {
66826699
"added": "pre-v0.10.1",
66836700
"deprecated": false

cln-grpc/proto/node.proto

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-grpc/src/convert.rs

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-rpc/src/model.rs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/msggen/msggen/schema.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15113,6 +15113,35 @@
1511315113
}
1511415114
}
1511515115
},
15116+
"alt-addr": {
15117+
"type": "object",
15118+
"additionalProperties": false,
15119+
"required": [
15120+
"values_str",
15121+
"sources"
15122+
],
15123+
"properties": {
15124+
"values_str": {
15125+
"added": "v24.05",
15126+
"type": "array",
15127+
"items": {
15128+
"type": "string",
15129+
"description": [
15130+
"Field from config or cmdline."
15131+
]
15132+
}
15133+
},
15134+
"sources": {
15135+
"type": "array",
15136+
"items": {
15137+
"type": "string",
15138+
"description": [
15139+
"Source of configuration setting."
15140+
]
15141+
}
15142+
}
15143+
}
15144+
},
1511615145
"offline": {
1511715146
"type": "object",
1511815147
"additionalProperties": false,

contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Lines changed: 276 additions & 275 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/pyln-testing/pyln/testing/grpc2py.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,13 @@ def listconfigs_configs_allow_deprecated_apis2py(m):
20522052
})
20532053

20542054

2055+
def listconfigs_configs_alt_addr2py(m):
2056+
return remove_default({
2057+
"sources": [m.sources for i in m.sources], # ArrayField[primitive] in generate_composite
2058+
"values_str": [m.values_str for i in m.values_str], # ArrayField[primitive] in generate_composite
2059+
})
2060+
2061+
20552062
def listconfigs_configs_always_use_proxy2py(m):
20562063
return remove_default({
20572064
"source": m.source, # PrimitiveField in generate_composite

doc/lightningd-config.5.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,17 @@ its use disables autolisten.
621621

622622
When set to *true* (default is *false*), prefixes all `HOSTNAME` in **announce-addr** with `dns:`.
623623

624+
* **alt-addr**=*\[IPADDRESS\[:PORT\]]\*
625+
626+
Specify an alternative IP address (v4 or v6) and optionally a port,
627+
to be used for selective private communications with established peers.
628+
This address is used selectively, primarily for reconnections with known peers,
629+
enhancing privacy and optimizing connectivity based on previous interactions.
630+
This address is not publicly announced.
631+
632+
An empty 'IPADDRESS' is a special value that clears any previously saved alternate addresses,
633+
effectively resetting this setting. (Added in v24.05).
634+
624635
* **offline**
625636

626637
Do not bind to any ports, and do not try to reconnect to any peers. This

doc/schemas/lightning-listconfigs.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,35 @@
11761176
}
11771177
}
11781178
},
1179+
"alt-addr": {
1180+
"type": "object",
1181+
"additionalProperties": false,
1182+
"required": [
1183+
"values_str",
1184+
"sources"
1185+
],
1186+
"properties": {
1187+
"values_str": {
1188+
"added": "v24.05",
1189+
"type": "array",
1190+
"items": {
1191+
"type": "string",
1192+
"description": [
1193+
"Field from config or cmdline."
1194+
]
1195+
}
1196+
},
1197+
"sources": {
1198+
"type": "array",
1199+
"items": {
1200+
"type": "string",
1201+
"description": [
1202+
"Source of configuration setting."
1203+
]
1204+
}
1205+
}
1206+
}
1207+
},
11791208
"offline": {
11801209
"type": "object",
11811210
"additionalProperties": false,

0 commit comments

Comments
 (0)