update
This commit is contained in:
@ -50,11 +50,16 @@ tap.test('should detect and forward non-TLS connections on useHttpProxy ports',
|
||||
})
|
||||
};
|
||||
|
||||
// Mock security manager
|
||||
const mockSecurityManager = {
|
||||
validateIP: () => ({ allowed: true })
|
||||
};
|
||||
|
||||
// Create route connection handler instance
|
||||
const handler = new RouteConnectionHandler(
|
||||
mockSettings,
|
||||
mockConnectionManager as any,
|
||||
{} as any, // security manager
|
||||
mockSecurityManager as any, // security manager
|
||||
{} as any, // tls manager
|
||||
mockHttpProxyBridge as any,
|
||||
{} as any, // timeout manager
|
||||
@ -137,10 +142,14 @@ tap.test('should handle TLS connections normally', async (tapTest) => {
|
||||
})
|
||||
};
|
||||
|
||||
const mockSecurityManager = {
|
||||
validateIP: () => ({ allowed: true })
|
||||
};
|
||||
|
||||
const handler = new RouteConnectionHandler(
|
||||
mockSettings,
|
||||
mockConnectionManager as any,
|
||||
{} as any,
|
||||
mockSecurityManager as any,
|
||||
mockTlsManager as any,
|
||||
mockHttpProxyBridge as any,
|
||||
{} as any,
|
||||
|
Reference in New Issue
Block a user