Skip to content

Commit 2a6c67e

Browse files
committed
fix: disable http-proxy when extension is inactive
1 parent 1acf899 commit 2a6c67e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

add-on/src/lib/http-proxy.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ log.error = debug('ipfs-companion:http-proxy:error')
3232
// https://bugzilla.mozilla.org/show_bug.cgi?id=1220810
3333
async function registerSubdomainProxy (getState, runtime, notify) {
3434
try {
35-
const { useSubdomainProxy: enable, gwURLString } = getState()
35+
const { active, useSubdomainProxy, gwURLString } = getState()
36+
const enable = active && useSubdomainProxy
3637

3738
// HTTP Proxy feature is exposed on the gateway port
3839
// Just ensure we use localhost IP to remove any dependency on DNS

0 commit comments

Comments
 (0)