Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
cc9e7826
Commit
cc9e7826
authored
Feb 06, 2016
by
titanium007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme; build number
parent
f26c5605
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
default.ps1
.build/default.ps1
+1
-1
README.md
README.md
+15
-4
ProxyTestController.cs
Titanium.Web.Proxy.Test/ProxyTestController.cs
+1
-3
No files found.
.build/default.ps1
View file @
cc9e7826
...
...
@@ -21,7 +21,7 @@ if(!$Configuration) { $Configuration = $env:Configuration }
if
(!
$Configuration
)
{
$Configuration
=
"Release"
}
if
(!
$Version
)
{
$Version
=
$env
:APPVEYOR_BUILD_VERSION
}
if
(!
$Version
)
{
$Version
=
"
1
.0.
$BuildNumber
"
}
if
(!
$Version
)
{
$Version
=
"
2
.0.
$BuildNumber
"
}
if
(!
$Branch
)
{
$Branch
=
$env
:APPVEYOR_REPO_BRANCH
}
if
(!
$Branch
)
{
$Branch
=
"local"
}
...
...
README.md
View file @
cc9e7826
...
...
@@ -36,11 +36,22 @@ Setup HTTP proxy:
// listen to client request & server response events
ProxyServer
.
BeforeRequest
+=
OnRequest
;
ProxyServer
.
BeforeResponse
+=
OnResponse
;
//Exclude Https addresses you don't want to proxy
//Usefull for clients that use certificate pinning
//for example dropbox.com
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Loopback
,
8000
,
true
){
ExcludedHostNameRegex
=
new
List
<
string
>()
{
"dropbox.com"
}
};
ProxyServer
.
EnableSSL
=
true
;
ProxyServer
.
SetAsSystemProxy
=
true
;
ProxyServer
.
Start
();
var
transparentEndPoint
=
new
TransparentProxyEndPoint
(
IPAddress
.
Loopback
,
8001
,
true
);
ProxyServer
.
AddEndPoint
(
explicitEndPoint
);
ProxyServer
.
AddEndPoint
(
transparentEndPoint
);
ProxyServer
.
Start
();
ProxyServer
.
SetAsSystemProxy
(
explicitEndPoint
);
//wait here (You can use something else as a wait function, I am using this as a demo)
Console
.
Read
();
...
...
Titanium.Web.Proxy.Test/ProxyTestController.cs
View file @
cc9e7826
...
...
@@ -23,9 +23,7 @@ namespace Titanium.Web.Proxy.Test
ExcludedHostNameRegex
=
new
List
<
string
>()
{
"dropbox.com"
}
};
var
transparentEndPoint
=
new
TransparentProxyEndPoint
(
IPAddress
.
Loopback
,
8001
,
true
)
{
};
var
transparentEndPoint
=
new
TransparentProxyEndPoint
(
IPAddress
.
Loopback
,
8001
,
true
);
ProxyServer
.
AddEndPoint
(
explicitEndPoint
);
ProxyServer
.
AddEndPoint
(
transparentEndPoint
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment