Commit e8304dde 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 2bd909fa
......@@ -124,7 +124,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
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);
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