Jelajahi Sumber

Copy proxy settings for different schemes instead of reusing. Fix #468.

FelisCatus 10 tahun lalu
induk
melakukan
50df9452ef
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      omega-target-chromium-extension/src/options.coffee

+ 1 - 1
omega-target-chromium-extension/src/options.coffee

@@ -98,7 +98,7 @@ class ChromeOptions extends OmegaTarget.Options
         else
           # Try to set the proxies of all possible protocols.
           for protocol in protocols
-            rules[protocol] ?= profile.fallbackProxy
+            rules[protocol] ?= JSON.parse(JSON.stringify(profile.fallbackProxy))
       else
         rules['fallbackProxy'] = profile.fallbackProxy
     else if not protocolProxySet