- Code: Select all
Class WebApp : CefApp
.........
protected override void OnBeforeCommandLineProcessing(string processType, CefCommandLine commandLine)
{
commandLine.AppendArgument("--proxy-server=socks5://127.0.0.1:8888"); //Does not work
if (Settings.NoProxyServer) commandLine.AppendSwitch("no-proxy-server")//Works OK to turn off
if (Settings.NoReferrers) commandLine.AppendSwitch("no-referrers"); //This works fine
base.OnBeforeCommandLineProcessing(processType, commandLine);
}
I have tried --proxy-server=\"socks5://127.0.0.1:8888\" and commandLine.AppendSwitch but nothing seems to work even when i remove the current windows proxy server using control panel
Also I help needed to load extensions like Ghostery because I have had no joy with CefRuntime.RegisterExtension in function protected override void OnWebKitInitialized()
but I did learn that break-points don't fire in this function but you can add a messagebox.show("Yes worked"); to prove it has been called.