mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 21:09:17 -06:00
8729a87024
* Updated with latest code * Updated Support proxies for PeerTube * Support Proxies for PeerTube (Updated with change request) * Cleanup proxy PR Co-authored-by: Chocobozzz <me@florianbigard.com>
15 lines
210 B
TypeScript
15 lines
210 B
TypeScript
function getProxy () {
|
|
return process.env.HTTPS_PROXY ||
|
|
process.env.HTTP_PROXY ||
|
|
undefined
|
|
}
|
|
|
|
function isProxyEnabled () {
|
|
return !!getProxy()
|
|
}
|
|
|
|
export {
|
|
getProxy,
|
|
isProxyEnabled
|
|
}
|