fix(network-proxy, route-utils, route-manager): Normalize IPv6-mapped IPv4 addresses in IP matching functions and remove deprecated legacy configuration methods in NetworkProxy. Update route-utils and route-manager to compare both canonical and IPv6-mapped IP forms, adjust tests accordingly, and clean up legacy exports.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import * as plugins from '../../plugins.js';
|
||||
|
||||
/**
|
||||
* Shared Route Context Interface
|
||||
*
|
||||
@ -42,8 +44,8 @@ export interface IRouteContext {
|
||||
* Used only in NetworkProxy for HTTP request handling
|
||||
*/
|
||||
export interface IHttpRouteContext extends IRouteContext {
|
||||
req?: any; // http.IncomingMessage
|
||||
res?: any; // http.ServerResponse
|
||||
req?: plugins.http.IncomingMessage;
|
||||
res?: plugins.http.ServerResponse;
|
||||
method?: string; // HTTP method (GET, POST, etc.)
|
||||
}
|
||||
|
||||
@ -52,7 +54,7 @@ export interface IHttpRouteContext extends IRouteContext {
|
||||
* Used only in NetworkProxy for HTTP/2 request handling
|
||||
*/
|
||||
export interface IHttp2RouteContext extends IHttpRouteContext {
|
||||
stream?: any; // http2.Http2Stream
|
||||
stream?: plugins.http2.ServerHttp2Stream;
|
||||
headers?: Record<string, string>; // HTTP/2 pseudo-headers like :method, :path
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user