summaryrefslogtreecommitdiff
path: root/cli/js/tls.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-18 21:49:55 +0100
committerGitHub <noreply@github.com>2020-01-18 21:49:55 +0100
commit23e67eb5153bd26dbae471b27dc6a21a6d283b0b (patch)
tree781432ad02563f4c393a90dcb4300976dda731c0 /cli/js/tls.ts
parent34b99fec8edcff7d3b667f273afea69df15e4d5e (diff)
stabilize net Addr (#3709)
Co-authored-by: xiaoxintang <15707971810@163.com>
Diffstat (limited to 'cli/js/tls.ts')
-rw-r--r--cli/js/tls.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/tls.ts b/cli/js/tls.ts
index 4dfb32e31..b8815831b 100644
--- a/cli/js/tls.ts
+++ b/cli/js/tls.ts
@@ -6,6 +6,7 @@ import { Listener, Transport, Conn, ConnImpl, ListenerImpl } from "./net.ts";
// TODO(ry) There are many configuration options to add...
// https://docs.rs/rustls/0.16.0/rustls/struct.ClientConfig.html
interface ConnectTLSOptions {
+ transport?: Transport;
port: number;
hostname?: string;
certFile?: string;
@@ -59,5 +60,5 @@ export function listenTLS(options: ListenTLSOptions): Listener {
certFile: options.certFile,
keyFile: options.keyFile
});
- return new TLSListenerImpl(res.rid, transport, res.localAddr);
+ return new TLSListenerImpl(res.rid, res.localAddr);
}