diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 19b5be5..d079175 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,7 @@ +**5.4.3** *(May 14 2020)* +- Added support for the optional field `config->skipSrvTimeout` in `config.json`. If a configured server does not return a valid response when unfurling potential SRV records, it will avoid re-unfurling SRV records for this duration in milliseconds. Use a value of `0` to disable this feature altogether. +- Removes support for the `config->performance->skipUnfurlSrv` and `config->performance->unfurlSrvCacheTtl` fields in `config.json + **5.4.2** *(May 13 2020)* - Fixes a typo causing `_minecraft._tcp.*` SRV records to not resolve. diff --git a/lib/dns.js b/lib/dns.js index e2ab8ff..f8bb69b 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -18,7 +18,8 @@ class DNSResolver { } _isSkipSrv () { - return this._skipSrvUntil && TimeTracker.getEpochMillis() <= this._skipSrvUntil + const ignoreSkipSrv = typeof config.skipSrvTimeout === 'number' && config.skipSrvTimeout <= 0 + return !ignoreSkipSrv && this._skipSrvUntil && TimeTracker.getEpochMillis() <= this._skipSrvUntil } resolve (callback) { diff --git a/package-lock.json b/package-lock.json index cef3b35..7b38dc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "minetrack", - "version": "5.4.2", + "version": "5.4.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 42ecbd9..4fb1d4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minetrack", - "version": "5.4.2", + "version": "5.4.3", "description": "A Minecraft server tracker that lets you focus on the basics.", "main": "main.js", "dependencies": {