Stagenet rehearsal passed

This commit is contained in:
2026-10-21 18:38:25 -04:00
parent 40f4aa6d4e
commit e3b2261da3
5 changed files with 63 additions and 9 deletions
+2 -1
View File
@@ -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) ||