Init commit
This commit is contained in:
9
server/core/helpers/proxy.ts
Normal file
9
server/core/helpers/proxy.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function getProxy () {
|
||||
return process.env.HTTPS_PROXY ||
|
||||
process.env.HTTP_PROXY ||
|
||||
undefined
|
||||
}
|
||||
|
||||
export function isProxyEnabled () {
|
||||
return !!getProxy()
|
||||
}
|
||||
Reference in New Issue
Block a user