From 74d92511ecde6302f5ba1b77f1bbb3d107786494 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 24 Oct 2020 15:33:25 +0200 Subject: [PATCH] Fix handling of missing opts --- src/serviceproviders/dns.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serviceproviders/dns.js b/src/serviceproviders/dns.js index 8be6921..b07f601 100644 --- a/src/serviceproviders/dns.js +++ b/src/serviceproviders/dns.js @@ -16,6 +16,7 @@ limitations under the License. const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/ const processURI = (uri, opts) => { + if (!opts) { opts = {} } const match = uri.match(reURI) return {