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

@ -43,7 +43,7 @@ tap.test('should forward non-TLS connections on HttpProxy ports', async (tapTest
// Test the logic from handleForwardAction
const route = mockSettings.routes[0];
const action = route.action;
const action = route.action as any;
// Simulate the fixed logic
if (!action.tls) {
@ -101,7 +101,7 @@ tap.test('should use direct connection for non-HttpProxy ports', async (tapTest)
};
const route = mockSettings.routes[0];
const action = route.action;
const action = route.action as any;
// Test the logic
if (!action.tls) {
@ -162,7 +162,7 @@ tap.test('should handle ACME HTTP-01 challenges on port 80 with HttpProxy', asyn
};
const route = mockSettings.routes[0];
const action = route.action;
const action = route.action as any;
// Test the fix for ACME HTTP-01 challenges
if (!action.tls) {