Commit 4e8c68f5 authored by Honfika's avatar Honfika

e.WebSession.Request.RequestUri.Host contains the port, so example changed to...

e.WebSession.Request.RequestUri.Host contains the port, so example changed to e.WebSession.Request.RequestUri.Host whoich contaisn only the hostname
parent 6e5e683e
...@@ -124,7 +124,7 @@ namespace Titanium.Web.Proxy.Examples.Basic ...@@ -124,7 +124,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
private async Task OnTunnelConnectRequest(object sender, TunnelConnectSessionEventArgs e) private async Task OnTunnelConnectRequest(object sender, TunnelConnectSessionEventArgs e)
{ {
string hostname = e.WebSession.Request.Host; string hostname = e.WebSession.Request.RequestUri.Host;
Console.WriteLine("Tunnel to: " + hostname); Console.WriteLine("Tunnel to: " + hostname);
if (hostname.Contains("dropbox.com")) if (hostname.Contains("dropbox.com"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment