providers: consistently use sticky hostname

This commit is contained in:
Renée Kooi 2017-08-17 12:13:20 +02:00
parent 0115b914ea
commit bfaac957de
No known key found for this signature in database
GPG key ID: 30516CF2A8E63718

View file

@ -58,11 +58,11 @@ module.exports = class Provider {
}
authUrl () {
return `${this.opts.host}/${this.id}/connect`
return `${this.hostname}/${this.id}/connect`
}
fileUrl (id) {
return `${this.opts.host}/${this.id}/get/${id}`
return `${this.hostname}/${this.id}/get/${id}`
}
list (directory) {