Skip to content

Commit

Permalink
connect: adds nodeid to remote_addr log message
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock authored and rustyrussell committed Jun 17, 2022
1 parent 033ac32 commit de9bc17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightningd/peer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,8 @@ void peer_connected(struct lightningd *ld, const u8 *msg)

/* Log and update remote_addr for Nat/IP discovery. */
if (hook_payload->remote_addr) {
log_info(ld->log, "Peer says it sees our address as: %s",
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
log_peer_info(ld->log, &id, "Peer says it sees our address as: %s",
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
/* Currently only from peers we have a channel with, until we
* do stuff like probing for remote_addr to a random node. */
if (!list_empty(&peer->channels))
Expand Down

0 comments on commit de9bc17

Please sign in to comment.