From b6203cb4657f8269bf80b135b3c49fb9304895c1 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 20 Apr 2021 10:12:33 +1000 Subject: revert: Conn type changes in #10012 and #10061 (#10255) Fixes #10200 (again) This reverts commit 9c7c9a35c12625bd4793c21539391d6b08d17e73 and a8057e3e06962a8d7c6330a085704bb4493eed04. --- runtime/js/40_tls.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/40_tls.js b/runtime/js/40_tls.js index ea094b6a7..4fafe9079 100644 --- a/runtime/js/40_tls.js +++ b/runtime/js/40_tls.js @@ -68,12 +68,6 @@ conn, { hostname = "127.0.0.1", certFile } = {}, ) { - if ( - !(conn.localAddr.transport === "tcp" || - conn.localAddr.transport === "udp") - ) { - throw new TypeError(`conn is not a valid network connection`); - } const res = await opStartTls({ rid: conn.rid, hostname, -- cgit v1.2.3