mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 23:42:09 +08:00
Log
This commit is contained in:
@@ -117,6 +117,7 @@ export async function httpProxy(url, params = {}) {
|
|||||||
let agent;
|
let agent;
|
||||||
if (proxyUrl) {
|
if (proxyUrl) {
|
||||||
agent = constructedUrl.protocol === "https:" ? new HttpsProxyAgent(proxyUrl) : new HttpProxyAgent(proxyUrl);
|
agent = constructedUrl.protocol === "https:" ? new HttpsProxyAgent(proxyUrl) : new HttpProxyAgent(proxyUrl);
|
||||||
|
logger.debug("Using proxy for request to %s: %s", constructedUrl.href, proxyUrl);
|
||||||
} else {
|
} else {
|
||||||
agent =
|
agent =
|
||||||
constructedUrl.protocol === "https:"
|
constructedUrl.protocol === "https:"
|
||||||
|
|||||||
Reference in New Issue
Block a user