From c516b7c2161a2ed7b1fa0ee12ccdbdceab7f23a7 Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Thu, 14 May 2020 20:38:17 -0500 Subject: [PATCH] release 5.4.3 --- docs/CHANGELOG.md | 4 ++++ lib/dns.js | 3 ++- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) 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": {