Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

How to interrupt localhost traffic? #915

Open
ljh1991125 opened this issue Jun 3, 2022 · 2 comments
Open

How to interrupt localhost traffic? #915

ljh1991125 opened this issue Jun 3, 2022 · 2 comments

Comments

@ljh1991125
Copy link

ljh1991125 commented Jun 3, 2022

Hi.

I am using Titanium Proxy 3.1.1397.
Generally it works very well.
But there is one problem.
If it is localhost traffic, the proxy does not seem to be able to handle it.
For example, if i type http://localhost/index.php, it is not detected by Proxy's OnRequest Callback.
I need to redirect localhost traffic to server.

This is my source code.

                proxyServer.BeforeRequest += OnRequest;
                proxyServer.BeforeResponse += OnResponse;
                proxyServer.ServerCertificateValidationCallback += OnCertificateValidation;
                proxyServer.ClientCertificateSelectionCallback += OnCertificateSelection;
                proxyServer.EnableTcpServerConnectionPrefetch = false;
                proxyServer.EnableConnectionPool = false;

                explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 8000, true)
                {
                    
                };

Thank you for your help.

@honfika
Copy link
Collaborator

honfika commented Dec 25, 2022

How do you set to use the proxy? Manually in your OS/broswer? Usualy you have to enable it for localhost separatly.

@Enumix
Copy link

Enumix commented Apr 15, 2023

I've made a comment in another thread which explains how to do it:
#954 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants