diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-04-20 10:12:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 10:12:33 +1000 |
commit | b6203cb4657f8269bf80b135b3c49fb9304895c1 (patch) | |
tree | 93d1eaf8057926c14ef097db861891ff6504ca7f /runtime/js/40_tls.js | |
parent | 07887b120cb8bfeccb3a9dd2d65c4da9d84a3e60 (diff) |
revert: Conn type changes in #10012 and #10061 (#10255)
Fixes #10200 (again)
This reverts commit 9c7c9a35c12625bd4793c21539391d6b08d17e73 and a8057e3e06962a8d7c6330a085704bb4493eed04.
Diffstat (limited to 'runtime/js/40_tls.js')
-rw-r--r-- | runtime/js/40_tls.js | 6 |
1 files changed, 0 insertions, 6 deletions
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, |