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

Commit cc9e782

Browse files
committed
update readme; build number
1 parent f26c560 commit cc9e782

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.build/default.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!$Configuration) { $Configuration = $env:Configuration }
2121
if(!$Configuration) { $Configuration = "Release" }
2222

2323
if(!$Version) { $Version = $env:APPVEYOR_BUILD_VERSION }
24-
if(!$Version) { $Version = "1.0.$BuildNumber" }
24+
if(!$Version) { $Version = "2.0.$BuildNumber" }
2525

2626
if(!$Branch) { $Branch = $env:APPVEYOR_REPO_BRANCH }
2727
if(!$Branch) { $Branch = "local" }

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,22 @@ Setup HTTP proxy:
3636
// listen to client request & server response events
3737
ProxyServer.BeforeRequest += OnRequest;
3838
ProxyServer.BeforeResponse += OnResponse;
39+
40+
//Exclude Https addresses you don't want to proxy
41+
//Usefull for clients that use certificate pinning
42+
//for example dropbox.com
43+
var explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Loopback, 8000, true){
44+
ExcludedHostNameRegex = new List<string>() { "dropbox.com" }
45+
};
3946

40-
ProxyServer.EnableSSL = true;
41-
ProxyServer.SetAsSystemProxy = true;
42-
ProxyServer.Start();
43-
47+
var transparentEndPoint = new TransparentProxyEndPoint(IPAddress.Loopback, 8001, true);
48+
49+
ProxyServer.AddEndPoint(explicitEndPoint);
50+
ProxyServer.AddEndPoint(transparentEndPoint);
51+
ProxyServer.Start();
52+
53+
ProxyServer.SetAsSystemProxy(explicitEndPoint);
54+
4455
//wait here (You can use something else as a wait function, I am using this as a demo)
4556
Console.Read();
4657

Titanium.Web.Proxy.Test/ProxyTestController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public void StartProxy()
2323
ExcludedHostNameRegex = new List<string>() { "dropbox.com" }
2424
};
2525

26-
var transparentEndPoint = new TransparentProxyEndPoint(IPAddress.Loopback, 8001, true)
27-
{
28-
};
26+
var transparentEndPoint = new TransparentProxyEndPoint(IPAddress.Loopback, 8001, true);
2927

3028
ProxyServer.AddEndPoint(explicitEndPoint);
3129
ProxyServer.AddEndPoint(transparentEndPoint);

0 commit comments

Comments
 (0)