feat(nftables): Add NFTables integration for kernel-level forwarding and update documentation, tests, and helper functions
This commit is contained in:
@ -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: {
|
||||
|
Reference in New Issue
Block a user