Skip to content

Commit

Permalink
feat: per proxy test-timeout for Surge nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
we11adam committed May 2, 2024
1 parent b83b9da commit e4bee65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/surge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ function appendCommonConfig(
'ecn',
'underlyingProxy',
'testUrl',
'testTimeout',
'tls13',
'skipCertVerify',
'sni',
Expand Down
1 change: 1 addition & 0 deletions src/validators/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e4bee65

Please sign in to comment.