fix(smartproxy): Improve port binding intelligence and ACME challenge route management; update route configuration tests and dependency versions.

This commit is contained in:
2025-05-28 19:58:28 +00:00
parent 4ebaf6c061
commit 742adc2bd9
17 changed files with 948 additions and 1258 deletions

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@git.zone/tapbundle';
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as net from 'net';
import * as tls from 'tls';
import * as fs from 'fs';
@ -61,7 +61,7 @@ tap.test('should forward TCP connections correctly', async () => {
id: 'tcp-forward',
name: 'TCP Forward Route',
match: {
port: 8080,
ports: 8080,
},
action: {
type: 'forward',
@ -110,8 +110,8 @@ tap.test('should handle TLS passthrough correctly', async () => {
id: 'tls-passthrough',
name: 'TLS Passthrough Route',
match: {
port: 8443,
domain: 'test.example.com',
ports: 8443,
domains: 'test.example.com',
},
action: {
type: 'forward',
@ -171,8 +171,8 @@ tap.test('should handle SNI-based forwarding', async () => {
id: 'domain-a',
name: 'Domain A Route',
match: {
port: 8443,
domain: 'a.example.com',
ports: 8443,
domains: 'a.example.com',
},
action: {
type: 'forward',
@ -189,8 +189,8 @@ tap.test('should handle SNI-based forwarding', async () => {
id: 'domain-b',
name: 'Domain B Route',
match: {
port: 8443,
domain: 'b.example.com',
ports: 8443,
domains: 'b.example.com',
},
action: {
type: 'forward',