diff --git a/src/lib/config.ts b/src/lib/config.ts index 5bb73986..8297cda3 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -559,6 +559,13 @@ export class default_config { // "https": "https://username:password@hostname:port" }) + /** + * Whether to use proxy settings. + * + * If set to `true`, all proxy settings will be ignored. + */ + noproxy: "true" | "false" = "false" + /** * Strict mode will always ensure a domain is open in the correct container, replacing the current tab if necessary. * diff --git a/src/lib/proxy.ts b/src/lib/proxy.ts index 7250733d..961f282f 100644 --- a/src/lib/proxy.ts +++ b/src/lib/proxy.ts @@ -140,6 +140,10 @@ export const onRequestListener = async ( ): Promise => { const noProxy = [] + if (config.get("noproxy") === "true") { + return noProxy + } + try { const proxies = await getProxiesForUrl(details.url)