mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 19:16:23 +01:00
lightningd: don't leak address for printing.
Not really a leak, but it would last as long as the peer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
899f54894f
commit
b67329bec2
1 changed files with 1 additions and 1 deletions
|
@ -1162,7 +1162,7 @@ void peer_connected(struct lightningd *ld, const u8 *msg, int peer_fd)
|
|||
hook_payload->remote_addr->type == ADDR_TYPE_IPV4 ||
|
||||
hook_payload->remote_addr->type == ADDR_TYPE_IPV6)) {
|
||||
log_info(ld->log, "Peer says it sees our address as: %s",
|
||||
fmt_wireaddr(peer, hook_payload->remote_addr));
|
||||
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
|
||||
}
|
||||
|
||||
plugin_hook_call_peer_connected(ld, hook_payload);
|
||||
|
|
Loading…
Add table
Reference in a new issue