diff --git a/src/utils.js b/src/utils.js index 191bb8c..b5b3d28 100644 --- a/src/utils.js +++ b/src/utils.js @@ -26,7 +26,7 @@ const generateProxyURL = (type, urlElements, opts) => { urlElements = [urlElements] } - urlElements.map((x) => { encodeURIComponent(x) }) + urlElements = urlElements.map((x) => { return encodeURIComponent(x) }) return `https://${ opts.doipProxyHostname