0
0
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:
bobwen-dev 2021-01-25 17:27:54 +08:00
parent cf021f396a
commit cf025bdebe

View File

@ -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)...