ファイル
nizika_video/server/core/helpers/proxy.ts
T
2024-07-15 09:14:04 +09:00

15 行
210 B
TypeScript

function getProxy () {
return process.env.HTTPS_PROXY ||
process.env.HTTP_PROXY ||
undefined
}
function isProxyEnabled () {
return !!getProxy()
}
export {
getProxy,
isProxyEnabled
}