mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Fix TLS crash with HTTP proxy
This commit is contained in:
parent
4592f062c4
commit
3fafcb15a1
5 changed files with 161 additions and 14 deletions
|
@ -1,14 +1,9 @@
|
|||
function getProxy () {
|
||||
export function getProxy () {
|
||||
return process.env.HTTPS_PROXY ||
|
||||
process.env.HTTP_PROXY ||
|
||||
undefined
|
||||
}
|
||||
|
||||
function isProxyEnabled () {
|
||||
export function isProxyEnabled () {
|
||||
return !!getProxy()
|
||||
}
|
||||
|
||||
export {
|
||||
getProxy,
|
||||
isProxyEnabled
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue