mirror of
https://github.com/bobwen-dev/htpdate
synced 2025-04-11 23:00:44 +02:00
Add proxy hint
This commit is contained in:
parent
cf021f396a
commit
cf025bdebe
@ -111,6 +111,9 @@ delay = util.promisify (ms, cb) ->
|
||||
|
||||
|
||||
do ->
|
||||
proxy = process.env.http_proxy or process.env.https_proxy
|
||||
if proxy not in [undefined, '']
|
||||
console.debug "Using explicit proxy server #{proxy}"
|
||||
values = []
|
||||
for url in argv._
|
||||
values.push (await get_time_delta url)...
|
||||
|
Loading…
x
Reference in New Issue
Block a user