Skip to content

Commit 057884a

Browse files
authored
docs: fix dial_timeout parameter documentation (#171)
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.
1 parent b9def71 commit 057884a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ forward_proxy {
9292
probe_resistance secret-link-kWWL9Q.com # alternatively you can use a real domain, such as caddyserver.com
9393
serve_pac /secret-proxy.pac
9494
95-
dial_timeout 30
95+
dial_timeout 30s
9696
9797
max_idle_conns 50
9898
max_idle_conns_per_host 2
@@ -204,8 +204,8 @@ forward_proxy {
204204

205205
### Timeouts
206206

207-
- `dial_timeout [integer]`
208-
Sets timeout (in seconds) for establishing TCP connection to target website. Affects all requests.
207+
- `dial_timeout [Duration]`
208+
Sets timeout (with units, e.g. 30s) for establishing TCP connection to target website. Affects all requests.
209209

210210
Default: 30 seconds.
211211

0 commit comments

Comments
 (0)