mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
connect: adds nodeid to remote_addr log message
This commit is contained in:
committed by
Rusty Russell
parent
033ac323d1
commit
de9bc172de
@@ -1170,8 +1170,8 @@ void peer_connected(struct lightningd *ld, const u8 *msg)
|
|||||||
|
|
||||||
/* Log and update remote_addr for Nat/IP discovery. */
|
/* Log and update remote_addr for Nat/IP discovery. */
|
||||||
if (hook_payload->remote_addr) {
|
if (hook_payload->remote_addr) {
|
||||||
log_info(ld->log, "Peer says it sees our address as: %s",
|
log_peer_info(ld->log, &id, "Peer says it sees our address as: %s",
|
||||||
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
|
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
|
||||||
/* Currently only from peers we have a channel with, until we
|
/* Currently only from peers we have a channel with, until we
|
||||||
* do stuff like probing for remote_addr to a random node. */
|
* do stuff like probing for remote_addr to a random node. */
|
||||||
if (!list_empty(&peer->channels))
|
if (!list_empty(&peer->channels))
|
||||||
|
|||||||
Reference in New Issue
Block a user