Пример #1
0
        /// <summary>
        /// On deserialization callback
        /// </summary>
        protected override void OnDeserialization()
        {
            base.OnDeserialization();

            if (_config == null)
            {
                _config = new HttpProxyServerConfig();
            }

            if (_sslConfig != null)
            {
                _config.SslConfig = _sslConfig;
                _sslConfig        = null;
            }
        }
Пример #2
0
        public HttpProxyOptionsForm(FullHttpProxyDocument document)
        {
            _document = document;
            _config   = _document.Config.Clone();

            InitializeComponent();
            sslConfigControl.Config    = _config.SslConfig;
            checkBoxEnableAuth.Checked = _config.RequireAuth;
            textBoxUsername.Text       = _config.ProxyUsername;
            textBoxPassword.Text       = _config.ProxyPassword;
            checkBoxHttp10.Checked     = _config.Version10Proxy;

            if (document is HttpReverseProxyDocument)
            {
                tabControl.TabPages.Remove(tabPageOptions);
            }
        }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public HttpProxyTemplate()
 {
     LocalPort = 3128;
     _config   = new HttpProxyServerConfig();
 }
Пример #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public FullHttpProxyDocument()
 {
     _port   = 3128;
     _config = new HttpProxyServerConfig();
 }