public void SetProxy(string proxy)
        {
            ushort port;

            if (ushort.TryParse(proxy, out port))
            {
                WinInetUtil.SetProxyInProcessForNekoxy(port);
            }
            else
            {
                WinInetUtil.SetProxyInProcess(proxy, "local");
            }

            //AddLog( 1, "setproxy:" + proxy );
        }
        public void SetProxy(string proxy)
        {
            ushort port;

            if (ushort.TryParse(proxy, out port))
            {
                WinInetUtil.SetProxyInProcessForNekoxy(port);
            }
            else
            {
                WinInetUtil.SetProxyInProcess(proxy, "local");
            }

            BrowserHost.AsyncRemoteRun(() => BrowserHost.Proxy.SetProxyCompleted());
        }
Beispiel #3
0
		public void SetProxy(string proxy)
		{
			ushort port;
			if (ushort.TryParse(proxy, out port))
			{
				WinInetUtil.SetProxyInProcessForNekoxy(port);
				ProxySettings = "http=127.0.0.1:" + port;           // todo: 動くには動くが正しいかわからない
			}
			else
			{
				WinInetUtil.SetProxyInProcess(proxy, "local");
				ProxySettings = proxy;
			}

			InitializeBrowser();

			BrowserHost.AsyncRemoteRun(() => BrowserHost.Proxy.SetProxyCompleted());
		}