aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/proxy.ts
blob: 8b82ccae066cdf28468601c141524afcc6a1b659 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function getProxy () {
  return process.env.HTTPS_PROXY ||
         process.env.HTTP_PROXY ||
         undefined
}

function isProxyEnabled () {
  return !!getProxy()
}

export {
  getProxy,
  isProxyEnabled
}