Skip to content

Commit

Permalink
Make auth work, remote is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
arj03 committed Jul 24, 2018
1 parent 5789f72 commit 2b50597
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions plugins/noauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ module.exports = function (opts) {
name: 'noauth',
create: function (_opts) {
return function (stream, cb) {
stream.address = 'noauth'
cb(null, {
remote: '',
remote: opts.keys.publicKey,
auth: { allow: null, deny: null },
source: stream.source,
sink: stream.sink
sink: stream.sink,
address: 'noauth:' + opts.keys.publicKey.toString('base64')
})
}
},
Expand All @@ -22,8 +22,3 @@ module.exports = function (opts) {
}
}
}





0 comments on commit 2b50597

Please sign in to comment.