Skip to content

Commit 1bcb863

Browse files
authored
Change user agent and adjust concurrency settings
Updated user agent string and modified concurrency settings. This should help with avoiding timeouts etc. when link checking.
1 parent 2f3a376 commit 1bcb863

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lychee.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ cache = true
55
max_cache_age = "10m"
66

77
# Stealth
8-
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0"
8+
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0"
9+
header = { "Accept" = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", "Accept-Language" = "en-US,en;q=0.5", "Accept-Encoding" = "gzip, deflate, br" }
910

1011
# Prevent 'Too Many Open Files'
11-
max_concurrency = 32
12+
max_concurrency = 16
13+
14+
# Slower retries give rate-limited servers time to cool down
15+
retry_wait_time = 5
1216

1317
# Check links inside `<code>` and `<pre>` blocks and Markdown code blocks
1418
include_verbatim = true

0 commit comments

Comments
 (0)