Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
parent
41ba06a5e6
commit
96bc17aa10
19 changed files with 195 additions and 125 deletions
|
|
@ -69,7 +69,7 @@ async function fetch(url: string, path: string) {
|
|||
|
||||
const req = request({
|
||||
url: requestUrl,
|
||||
proxy: config.proxy,
|
||||
proxy: config.proxy.getOrElse(null),
|
||||
timeout: 10 * 1000,
|
||||
headers: {
|
||||
'User-Agent': config.user_agent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue