We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bff53 commit 9effe97Copy full SHA for 9effe97
packages/@hprose/rpc-node/src/SocketTransport.ts
@@ -8,7 +8,7 @@
8
| |
9
| SocketTransport for TypeScript. |
10
11
-| LastModified: Dec 17, 2019 |
+| LastModified: Dec 18, 2019 |
12
| Author: Ma Bingyao <[email protected]> |
13
14
\*________________________________________________________*/
@@ -41,7 +41,7 @@ export class SocketTransport implements Transport {
41
case 'ssl4:':
42
case 'ssl6:': {
43
const options: net.TcpNetConnectOpts = Object.create(null);
44
- options.host = parser.hostname;
+ options.host = parser.hostname ?? undefined;
45
options.port = parser.port ? parseInt(parser.port, 10) : 8412;
46
switch (protocol) {
47
case 'tcp4:':
0 commit comments