diff --git a/lib/net/peer.js b/lib/net/peer.js index 92df0938..960be032 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -328,7 +328,7 @@ Peer.prototype.setCipher = function setCipher(cipher) { if (self.destroyed) return; - self.logger.debug('Rekeying with peer (%s).', self.hostname); + self.logger.debug('Rekeying with peer (%s).', self.hostname()); self.send(self.bip151.toRekey()); });