Skip to content

Commit

Permalink
fix: disable http-proxy when extension is inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 3, 2020
1 parent 1acf899 commit 2a6c67e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion add-on/src/lib/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ log.error = debug('ipfs-companion:http-proxy:error')
// https://bugzilla.mozilla.org/show_bug.cgi?id=1220810
async function registerSubdomainProxy (getState, runtime, notify) {
try {
const { useSubdomainProxy: enable, gwURLString } = getState()
const { active, useSubdomainProxy, gwURLString } = getState()
const enable = active && useSubdomainProxy

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

0 comments on commit 2a6c67e

Please sign in to comment.