GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fallback to IPv4 if IPv6 is unavailable · nodejs/node@0edaf01

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-tls-psk-client.js
    • test-tls-securepair-client.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/sequential/test-tls-psk-client.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-tls-psk-client.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const { spawn } = require('child_process');
1414
const CIPHERS = 'PSK+HIGH';
1515
const KEY = 'd731ef57be09e5204f0b205b60627028';
1616
const IDENTITY = 'Client_identity'; // Hardcoded by `openssl s_server`
17+
const useIPv4 = !common.hasIPv6;
1718

1819
const server = spawn(common.opensslCli, [
1920
's_server',
@@ -23,6 +24,7 @@ const server = spawn(common.opensslCli, [
2324
'-psk_hint', IDENTITY,
2425
'-nocert',
2526
'-rev',
27+
...(useIPv4 ? ['-4'] : []),
2628
], { encoding: 'utf8' });
2729
let serverErr = '';
2830
let serverOut = '';
Collapse file

‎test/sequential/test-tls-securepair-client.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-tls-securepair-client.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const fixtures = require('../common/fixtures');
3838
const tls = require('tls');
3939
const spawn = require('child_process').spawn;
4040

41+
const useIPv4 = !common.hasIPv6;
42+
4143
test1();
4244

4345
// simple/test-tls-securepair-client
@@ -64,7 +66,9 @@ function test(keyPath, certPath, check, next) {
6466
const server = spawn(common.opensslCli, ['s_server',
6567
'-accept', 0,
6668
'-cert', fixtures.path(certPath),
67-
'-key', fixtures.path(keyPath)]);
69+
'-key', fixtures.path(keyPath),
70+
...(useIPv4 ? ['-4'] : []),
71+
]);
6872
server.stdout.pipe(process.stdout);
6973
server.stderr.pipe(process.stdout);
7074

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.