Content-Length: 217461 | pFad | http://github.com/sharpbrowser/SharpBrowser/issues/99

75 allow user to set Proxy Modes at Runtime via Menu (autodetect / sytem, noProxy, customProxy ) · Issue #99 · sharpbrowser/SharpBrowser · GitHub
Skip to content

allow user to set Proxy Modes at Runtime via Menu (autodetect / sytem, noProxy, customProxy ) #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
blackholeearth opened this issue Apr 15, 2025 · 0 comments

Comments

@blackholeearth
Copy link
Contributor

blackholeearth commented Apr 15, 2025

i think, every ones has diffrent proxy setting... so we need to let them choose at menu or some place easily.

forexample i need auto-detect. it work well for most people as default..
otherwise it cant connect to google or anysite.

to do ,next step::

add this to menu.. so user can change it. so he doesnt have to restart browser...

proxyModes to be used at setPreferences::

          <option value="direct">Direct</option>
          <option value="system">System</option>
          <option value="auto_detect">Auto-Detect</option>
          <option value="pac_script">PAC Script</option>
          <option value="fixed_servers">Fixed Servers</option>

how to change proxy at runtime;


 Cef.UIThreadTaskFactory.StartNew(delegate {
      var rc = chromeBrowser.GetBrowser().GetHost().RequestContext;
      var v = new Dictionary<string, object>();
      v["mode"] = "fixed_servers";
      v["server"] = "socks5://127.0.0.1:9190";
      string error;
      bool success = rc.SetPreference("proxy", v, out error);                
    });     

sources:

https://github.com/Mojang/cef/blob/master/tests/cefclient/resources/preferences.html

cefsharp/CefSharp#1813

@blackholeearth blackholeearth changed the title allow user to set Proxy Modes at Runtime via Menu allow user to set Proxy Modes at Runtime via Menu (autodetect / sytem - OR noProxy - Or customProxy ) Apr 15, 2025
@blackholeearth blackholeearth changed the title allow user to set Proxy Modes at Runtime via Menu (autodetect / sytem - OR noProxy - Or customProxy ) allow user to set Proxy Modes at Runtime via Menu (autodetect / sytem, noProxy, customProxy ) Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sharpbrowser/SharpBrowser/issues/99

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy