From 8acb493ad64a59db95a42bf32768bc1ca879a0af Mon Sep 17 00:00:00 2001 From: Shine Date: Wed, 18 Jun 2025 11:48:32 +0800 Subject: [PATCH] docs: fix `dial_timeout` parameter documentation Fixes #170 - Update `dial_timeout` example to use duration unit (30s) - Change parameter type from [integer] to [Duration] to match Go type - Update description to clarify duration unit requirement This change makes the documentation more accurate and consistent with Go's time.Duration type usage. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1b48fa..bd4980a 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ forward_proxy { probe_resistance secret-link-kWWL9Q.com # alternatively you can use a real domain, such as caddyserver.com serve_pac /secret-proxy.pac - dial_timeout 30 + dial_timeout 30s max_idle_conns 50 max_idle_conns_per_host 2 @@ -204,8 +204,8 @@ forward_proxy { ### Timeouts -- `dial_timeout [integer]` - Sets timeout (in seconds) for establishing TCP connection to target website. Affects all requests. +- `dial_timeout [Duration]` + Sets timeout (with units, e.g. 30s) for establishing TCP connection to target website. Affects all requests. Default: 30 seconds.