- Code: Select all
var cfsettings = new CefSettings();
_cfsettings.CefCommandLineArgs.Add("proxy-server", "IP:PORT");
_cfsettings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36";
Cef.Initialize(_cfsettings);
This is how I am initializing my browser and the proxy works just fine, however, if I want to switch proxy dynamically I have no idea on how to do so, I tried to dispose Cef and start a new session but it won't let me do it, how should I proceed with that?
Thanks