From d23f29afb789f399f74d9d33987e8e3e1f235afd Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 28 Jun 2018 23:16:37 -1000 Subject: Render weird pub messages --- lib/render-msg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/render-msg.js b/lib/render-msg.js index afbdc00..281abb6 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -648,8 +648,8 @@ RenderMsg.prototype.contact = function (cb) { RenderMsg.prototype.pub = function (cb) { var self = this - var addr = self.c.address || {} - self.link(addr.key, function (err, pubLink) { + var addr = self.c.address || self.c.pub || {} + self.link(addr.key || addr.link, function (err, pubLink) { if (err) return cb(err) self.wrapMini([ 'connects to ', pubLink, ' at ', -- cgit v1.2.3