Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit c289b2c

Browse files
committed
update readme
1 parent 83b0c73 commit c289b2c

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -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);

Titanium.Web.Proxy.Test/ProxyTestController.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void StartProxy()
2828
ProxyServer.AddEndPoint(explicitEndPoint);
2929
ProxyServer.Start();
3030

31-
//You can also add/remove end points after proxy has been started
31+
3232
//Transparent endpoint is usefull for reverse proxying (client is not aware of the existance of proxy)
3333
//A transparent endpoint usually requires a network router port forwarding HTTP(S) packets to this endpoint
3434
//Currently do not support Server Name Indication (It is not currently supported by SslStream class)
@@ -38,11 +38,14 @@ public void StartProxy()
3838
//Please read about it before asking questions!
3939
var transparentEndPoint = new TransparentProxyEndPoint(IPAddress.Any, 8001, true) { GenericCertificateName = "google.com"};
4040
ProxyServer.AddEndPoint(transparentEndPoint);
41-
ProxyServer.RemoveEndPoint(transparentEndPoint);
41+
4242

4343
foreach (var endPoint in ProxyServer.ProxyEndPoints)
4444
Console.WriteLine("Listening on '{0}' endpoint at Ip {1} and port: {2} ", endPoint.GetType().Name, endPoint.IpAddress, endPoint.Port);
4545

46+
//You can also add/remove end points after proxy has been started
47+
ProxyServer.RemoveEndPoint(transparentEndPoint);
48+
4649
//Only explicit proxies can be set as system proxy!
4750
ProxyServer.SetAsSystemHttpProxy(explicitEndPoint);
4851
ProxyServer.SetAsSystemHttpsProxy(explicitEndPoint);

0 commit comments

Comments
 (0)