This repository was archived by the owner on Jul 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if(!$Configuration) { $Configuration = $env:Configuration }
21
21
if (! $Configuration ) { $Configuration = " Release" }
22
22
23
23
if (! $Version ) { $Version = $env: APPVEYOR_BUILD_VERSION }
24
- if (! $Version ) { $Version = " 1 .0.$BuildNumber " }
24
+ if (! $Version ) { $Version = " 2 .0.$BuildNumber " }
25
25
26
26
if (! $Branch ) { $Branch = $env: APPVEYOR_REPO_BRANCH }
27
27
if (! $Branch ) { $Branch = " local" }
Original file line number Diff line number Diff line change @@ -36,11 +36,22 @@ Setup HTTP proxy:
36
36
// listen to client request & server response events
37
37
ProxyServer .BeforeRequest += OnRequest ;
38
38
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
+ };
39
46
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
+
44
55
// wait here (You can use something else as a wait function, I am using this as a demo)
45
56
Console .Read ();
46
57
Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ public void StartProxy()
23
23
ExcludedHostNameRegex = new List < string > ( ) { "dropbox.com" }
24
24
} ;
25
25
26
- var transparentEndPoint = new TransparentProxyEndPoint ( IPAddress . Loopback , 8001 , true )
27
- {
28
- } ;
26
+ var transparentEndPoint = new TransparentProxyEndPoint ( IPAddress . Loopback , 8001 , true ) ;
29
27
30
28
ProxyServer . AddEndPoint ( explicitEndPoint ) ;
31
29
ProxyServer . AddEndPoint ( transparentEndPoint ) ;
You can’t perform that action at this time.
0 commit comments