Skip to content

Commit 5fd8330

Browse files
committed
add an option to let the backend verify the given route
1 parent 34e22b5 commit 5fd8330

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/requester/RouteRegistrar.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface Route {
1111
scheme?: "http" | "https";
1212
healthCheck?: HealthCheckConfig;
1313
source: string;
14+
verify?: boolean;
1415
}
1516

1617
export interface RouteRegistrationResult {
@@ -77,13 +78,15 @@ export async function registerTunnelRoute(
7778
const healthCheck = getHealthCheckConfig();
7879

7980
// Build dual routes: HTTPS and HTTP
81+
// verify: false skips validation since internal tunnel IPs aren't reachable from backend
8082
const routes: Route[] = [
8183
{
8284
ip: routeIp,
8385
port: tunnelPortHttps,
8486
priority: config.ROUTE_PRIORITY,
8587
scheme: 'https',
8688
source: 'tunnel',
89+
verify: false,
8790
...(healthCheck && { healthCheck }),
8891
},
8992
{
@@ -92,7 +95,7 @@ export async function registerTunnelRoute(
9295
priority: config.ROUTE_PRIORITY,
9396
scheme: 'http',
9497
source: 'tunnel',
95-
// No health check for HTTP route
98+
verify: false,
9699
},
97100
];
98101

0 commit comments

Comments
 (0)