diff options
-rw-r--r-- | lib/render-msg.js | 4 |
1 files 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 ', |