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
494b281e
Commit
494b281e
authored
Feb 06, 2016
by
justcoding121
Committed by
justcoding121
Feb 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
754a3bcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
README.md
README.md
+21
-15
No files found.
README.md
View file @
494b281e
...
@@ -41,16 +41,22 @@ Setup HTTP proxy:
...
@@ -41,16 +41,22 @@ Setup HTTP proxy:
//Usefull for clients that use certificate pinning
//Usefull for clients that use certificate pinning
//for example dropbox.com
//for example dropbox.com
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Loopback
,
8000
,
true
){
var
explicitEndPoint
=
new
ExplicitProxyEndPoint
(
IPAddress
.
Loopback
,
8000
,
true
){
Excluded
HostNameRegex
=
new
List
<
string
>()
{
"dropbox.com"
}
ExcludedHttps
HostNameRegex
=
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
(
explicitEndPoint
);
ProxyServer
.
AddEndPoint
(
transparentEndPoint
);
ProxyServer
.
Start
();
ProxyServer
.
Start
();
ProxyServer
.
SetAsSystemProxy
(
explicitEndPoint
);
//You can also add/remove end points after proxy has been started
ProxyServer
.
AddEndPoint
(
transparentEndPoint
);
foreach
(
var
endPoint
in
ProxyServer
.
ProxyEndPoints
)
Console
.
WriteLine
(
"Listening on '{0}' endpoint at Ip {1} and port: {2} "
,
endPoint
.
GetType
().
Name
,
endPoint
.
IpAddress
,
endPoint
.
Port
);
ProxyServer
.
SetAsSystemHttpProxy
(
explicitEndPoint
);
ProxyServer
.
SetAsSystemHttpsProxy
(
explicitEndPoint
);
//wait here (You can use something else as a wait function, I am using this as a demo)
//wait here (You can use something else as a wait function, I am using this as a demo)
Console
.
Read
();
Console
.
Read
();
...
...
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