feat(nftables): Add NFTables integration for kernel-level forwarding and update documentation, tests, and helper functions

This commit is contained in:
2025-05-15 19:39:09 +00:00
parent 4568623600
commit 5d0b68da61
19 changed files with 977 additions and 1068 deletions

View File

@ -312,14 +312,8 @@ tap.test('SmartProxy: Should handle certificate provisioning through routes', as
// Create a SmartProxy instance that can avoid binding to privileged ports
// and using a mock certificate provisioner for testing
const proxy = new SmartProxy({
// Use TestSmartProxyOptions with portMap for testing
// Configure routes
routes,
// Use high port numbers for testing to avoid need for root privileges
portMap: {
80: 8080, // Map HTTP port 80 to 8080
443: 4443 // Map HTTPS port 443 to 4443
},
tlsSetupTimeoutMs: 500, // Lower timeout for testing
// Certificate provisioning settings
certProvisionFunction: mockProvisionFunction,
acme: {