choose any of the shared domains

This commit is contained in:
AJ ONeal 2018-08-02 20:48:35 +00:00
parent d63b6cb370
commit b386857d99
1 changed files with 2 additions and 1 deletions

View File

@ -456,7 +456,8 @@ module.exports.pairPin = function (opts) {
console.log('[pairPin] generating offer');
var hri = require('human-readable-ids').hri;
var hrname = hri.random() + '.' + state.config.sharedDomain;
var i = Math.floor(Math.random() * state.config.sharedDomains.length);
var hrname = hri.random() + '.' + state.config.sharedDomains[i];
// TODO check used / unused names and ports
var authzData = {
id: auth.id