Stagenet rehearsal passed
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { lstat, readFile } from 'node:fs/promises';
|
||||
import { request as httpsRequest } from 'node:https';
|
||||
import { isIP } from 'node:net';
|
||||
import { z } from 'zod';
|
||||
import type { MoneroFixtureTransport } from './monero-observer.ts';
|
||||
|
||||
@@ -75,7 +76,7 @@ export async function loadMoneroMtlsTransport(configInput: unknown): Promise<Mon
|
||||
protocol: 'https:', hostname: url.hostname, port: url.port || 443, path: url.pathname,
|
||||
method: 'POST', headers: { accept: 'application/json', 'content-type': 'application/json',
|
||||
'content-length': body.byteLength }, cert, key, ca, rejectUnauthorized: true,
|
||||
servername: url.hostname, minVersion: 'TLSv1.3',
|
||||
...(isIP(url.hostname) ? {} : { servername: url.hostname }), minVersion: 'TLSv1.3',
|
||||
}, response => {
|
||||
if ((response.statusCode ?? 0) < 200 || (response.statusCode ?? 0) >= 300 ||
|
||||
(response.headers.location !== undefined) ||
|
||||
|
||||
Reference in New Issue
Block a user