summaryrefslogtreecommitdiff
path: root/cli/js/tls.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/tls.ts')
-rw-r--r--cli/js/tls.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/tls.ts b/cli/js/tls.ts
index 3ed70727d..5a9b9ace0 100644
--- a/cli/js/tls.ts
+++ b/cli/js/tls.ts
@@ -1,11 +1,11 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as tlsOps from "./ops/tls.ts";
-import { Listener, Transport, Conn, ConnImpl, ListenerImpl } from "./net.ts";
+import { Listener, 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;
+ transport?: "tcp";
port: number;
hostname?: string;
certFile?: string;
@@ -36,7 +36,7 @@ class TLSListenerImpl extends ListenerImpl {
export interface ListenTLSOptions {
port: number;
hostname?: string;
- transport?: Transport;
+ transport?: "tcp";
certFile: string;
keyFile: string;
}