| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 258d5f7 commit 11509a4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | 3 | const common = require('../common'); | |
| 4 | + const { addresses: { INET_HOST } } = require('../common/internet'); | ||
| 4 | 5 | ||
| 5 | 6 | if (!common.hasCrypto) { | |
| 6 | 7 | common.skip('missing crypto'); | |
@@ -15,9 +16,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows | |||
| 15 | 16 | // Test that TLS connecting works without autoSelectFamily | |
| 16 | 17 | { | |
| 17 | 18 | const socket = connect({ | |
| 18 | - host: 'google.com', | ||
| 19 | + host: INET_HOST, | ||
| 19 | 20 | port: 443, | |
| 20 | - servername: 'google.com', | ||
| 21 | + servername: INET_HOST, | ||
| 21 | 22 | autoSelectFamily: false, | |
| 22 | 23 | }); | |
| 23 | 24 | ||
@@ -27,9 +28,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows | |||
| 27 | 28 | // Test that TLS connecting works with autoSelectFamily | |
| 28 | 29 | { | |
| 29 | 30 | const socket = connect({ | |
| 30 | - host: 'google.com', | ||
| 31 | + host: INET_HOST, | ||
| 31 | 32 | port: 443, | |
| 32 | - servername: 'google.com', | ||
| 33 | + servername: INET_HOST, | ||
| 33 | 34 | autoSelectFamily: true, | |
| 34 | 35 | }); | |
| 35 | 36 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments