From e4bee657bd6c091f4dbea06a8777cfd61e1c0c8f Mon Sep 17 00:00:00 2001 From: Adam L <319494+we11adam@users.noreply.github.com> Date: Wed, 1 May 2024 22:38:07 +0800 Subject: [PATCH] feat: per proxy `test-timeout` for Surge nodes --- src/utils/surge.ts | 1 + src/validators/common.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/utils/surge.ts b/src/utils/surge.ts index 3ba1edcc7..08282c7aa 100644 --- a/src/utils/surge.ts +++ b/src/utils/surge.ts @@ -500,6 +500,7 @@ function appendCommonConfig( 'ecn', 'underlyingProxy', 'testUrl', + 'testTimeout', 'tls13', 'skipCertVerify', 'sni', diff --git a/src/validators/common.ts b/src/validators/common.ts index 805e9b638..4c9824941 100644 --- a/src/validators/common.ts +++ b/src/validators/common.ts @@ -81,6 +81,7 @@ export const SimpleNodeConfigValidator = z.object({ // Misc underlyingProxy: z.string().optional(), testUrl: z.string().optional(), + testTimeout: z.number().optional(), surgeConfig: SurgeConfigValidator.optional(), surfboardConfig: SurfboardConfigValidator.optional(), quantumultXConfig: QuantumultXConfigValidator.optional(),