@@ -49,21 +49,24 @@ Setup HTTP proxy:
4949 ProxyServer .AddEndPoint (explicitEndPoint );
5050 ProxyServer .Start ();
5151
52- // You can also add/remove end points after proxy has been started
53- // Transparent endpoint is usefull for reverse proxying
52+
53+ // Transparent endpoint is usefull for reverse proxying (client is not aware of the existance of proxy)
5454 // A transparent endpoint usually requires a network router port forwarding HTTP(S) packets to this endpoint
55- // Please read about it before asking questions!
56- // Currently do not support Server Name Indication (SNI is not currently supported by SslStream class)
55+ // Currently do not support Server Name Indication (It is not currently supported by SslStream class)
5756 // That means that the transparent endpoint will always provide the same Generic Certificate to all HTTPS requests
5857 // In this example only google.com will work for HTTPS requests
5958 // Other sites will receive a certificate mismatch warning on browser
59+ // Please read about it before asking questions!
6060 var transparentEndPoint = new TransparentProxyEndPoint (IPAddress .Any , 8001 , true ) { GenericCertificateName = " google.com" };
6161 ProxyServer .AddEndPoint (transparentEndPoint );
62- ProxyServer . RemoveEndPoint ( transparentEndPoint );
62+
6363
6464 foreach (var endPoint in ProxyServer .ProxyEndPoints )
6565 Console .WriteLine (" Listening on '{0}' endpoint at Ip {1} and port: {2} " , endPoint .GetType ().Name , endPoint .IpAddress , endPoint .Port );
6666
67+ // You can also add/remove end points after proxy has been started
68+ ProxyServer .RemoveEndPoint (transparentEndPoint );
69+
6770 // Only explicit proxies can be set as system proxy!
6871 ProxyServer .SetAsSystemHttpProxy (explicitEndPoint );
6972 ProxyServer .SetAsSystemHttpsProxy (explicitEndPoint );
0 commit comments