Browse Source

Merge pull request #8 from em92/dns-resolve-fix

Use correct attribute to resolve host
master
Benji 2 years ago
committed by GitHub
parent
commit
8ef41cdb7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/feed-data.js

+ 1
- 1
app/models/feed-data.js View File

@@ -65,7 +65,7 @@ module.exports = class FeedData extends Core.BaseEmbeddedData {
}

fetchLatest(guild) {
const dnsPromise = resolveDns(Url.parse(this.url).host).then(() => this._doFetchRSS(guild));
const dnsPromise = resolveDns(Url.parse(this.url).hostname).then(() => this._doFetchRSS(guild));

dnsPromise.catch(err => DiscordUtil.dateDebugError("Connection error: Can't resolve host", err.message || err));



Loading…
Cancel
Save