| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b1ddf11 commit 7cc4645
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,10 @@ if (!common.hasCrypto) { | |||
| 6 | 6 | return; | |
| 7 | 7 | } | |
| 8 | 8 | ||
| 9 | - if (!process.features.tls_alpn) { | ||
| 10 | - console.error('Skipping because node compiled without OpenSSL or ' + | ||
| 11 | - 'with old OpenSSL version.'); | ||
| 12 | - process.exit(0); | ||
| 9 | + if (!process.features.tls_alpn || !process.features.tls_npn) { | ||
| 10 | + common.skip('Skipping because node compiled without NPN or ALPN' + | ||
| 11 | + ' feature of OpenSSL.'); | ||
| 12 | + return; | ||
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | 15 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | if (!process.features.tls_npn) { | |
| 3 | - common.skip('node compiled without OpenSSL or ' + | ||
| 4 | - 'with old OpenSSL version.'); | ||
| 3 | + common.skip('Skipping because node compiled without NPN feature of' + | ||
| 4 | + ' OpenSSL.'); | ||
| 5 | 5 | return; | |
| 6 | 6 | } | |
| 7 | 7 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments