Skip to content

Commit 2ee2ae6

Browse files
committed
Ensure Firefox proxy settings are correct even if ports change
Previously, if using multiple ports, sometimes Firefox would start with different SSL & HTTP proxy ports, which causes all sorts of funky behaviour
1 parent 930a28e commit 2ee2ae6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/interceptors/fresh-firefox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ export class FreshFirefox {
8080
'network.proxy.ssl': '"localhost"',
8181
'network.proxy.ssl_port': proxyPort,
8282

83+
// The above james proxy/noProxy settings should do this, but don't seem to
84+
// reliably overwrite existing values, so we set them explicitly.
85+
'network.proxy.http': '"localhost"',
86+
'network.proxy.http_port': proxyPort,
87+
'network.proxy.http.network.proxy.http.no_proxies_on': certCheckServer.host,
88+
8389
// Disable the noisy captive portal check requests
8490
'network.captive-portal-service.enabled': false,
8591

0 commit comments

Comments
 (0)