From 725408f13522c67f3393be1fc51d1c311fb3ebfb Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Thu, 17 Dec 2015 11:04:10 +0100 Subject: [PATCH] Add host and port to TlsOptions --- node/node-tests.ts | 7 +++++++ node/node.d.ts | 2 ++ 2 files changed, 9 insertions(+) diff --git a/node/node-tests.ts b/node/node-tests.ts index aa0f55bb6..717220afc 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -198,6 +198,13 @@ var ctx: tls.SecureContext = tls.createSecureContext({ }); var blah = ctx.context; +var tlsOpts: tls.TlsOptions = { + host: "127.0.0.1", + port: 55 +}; +var tlsSocket = tls.connect(tlsOpts); + + //////////////////////////////////////////////////// // Make sure .listen() and .close() retuern a Server instance diff --git a/node/node.d.ts b/node/node.d.ts index 879b20d89..2b7c2a10d 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1535,6 +1535,8 @@ declare module "tls" { var CLIENT_RENEG_WINDOW: number; export interface TlsOptions { + host?: string; + port?: number; pfx?: any; //string or buffer key?: any; //string or buffer passphrase?: string;