jsonrpc: adds optional remote_addr to listpeers

Changelog-Added: jsonrpc: adds optional `remote_addr` to listpeers
This commit is contained in:
Michael Schmoock
2022-06-01 13:18:55 +02:00
committed by Rusty Russell
parent a2b75b66ba
commit 475e4c9bd9
5 changed files with 22 additions and 2 deletions

View File

@@ -1114,6 +1114,10 @@
"description": "address, e.g. 1.2.3.4:1234"
}
},
"remote_addr": {
"type": "string",
"description": "The public IPv4/6 address the peer sees us from, e.g. 1.2.3.4:1234"
},
"features": {
"type": "hex",
"description": "bitmap of BOLT #9 features from peer's INIT message"