Browse Source

Use correct attribute to resolve host

master^2
Eugene Molotov 2 years ago
parent
commit
a9535aa974
1 changed files with 1 additions and 1 deletions
  1. 2
      app/models/feed-data.js

2
app/models/feed-data.js

@ -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