diff --git a/lib/transport.tcp.js b/lib/transport.tcp.js index dda958c..075b6dd 100644 --- a/lib/transport.tcp.js +++ b/lib/transport.tcp.js @@ -43,9 +43,9 @@ function parseUrl(urlString) { const urlObject = url.parse(urlString); const config = {}; - if (urlObject.protocol === 'jstp') { + if (urlObject.protocol === 'jstp:') { config.secure = false; - } else if (urlObject.protocol === 'jstps') { + } else if (urlObject.protocol === 'jstps:') { config.secure = true; } else { throw new Error('Invalid URL schema');