1
0
Fork 0
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:
Chocobozzz 2024-12-23 09:16:48 +01:00
parent 4592f062c4
commit 3fafcb15a1
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 161 additions and 14 deletions

View file

@ -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
}