mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-10 13:49:39 +05:00
increase dns cache time; retry failed requests and lower timeout
This commit is contained in:
@@ -19,4 +19,7 @@ const TrackTTL = 5 * time.Minute
|
||||
// default fasthttp one was causing connections to be stuck? todo make it cycle browser useragents or just choose random at startup
|
||||
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
|
||||
|
||||
// time-to-live for dns cache
|
||||
const DNSCacheTTL = 10 * time.Minute
|
||||
|
||||
var JSON = jsoniter.ConfigFastest
|
||||
|
||||
Reference in New Issue
Block a user