question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

change_upstream_proxy_server

See original GitHub issue

i have two http proxy serivce : http://104.199.205.163:8888 and http://104.155.220.54:8888 when i am run driver.get('http://httpbin.org/ip')

and mitmproxy: mitmproxy -s proxy.py --mode upstream:http://104.199.205.163:8888 --no-http2 --ssl-insecure --set upstream_cert=false show ip :104.155.220.54

mitmproxy -s proxy.py --mode upstream:http://default-upstream-proxy.local:8080/ --no-http2 --ssl-insecure --set upstream_cert=false show the ip :104.196.15.117

proxy.py

def request(flow):
    proxy='104.155.220.54'
    port=8888
    flow.live.change_upstream_proxy_server((proxy,port))

why i must set -mode upstream:http://104.199.205.163:8888 show this ip 104.155.220.54? can I do it through a python script? Where is the meaning of the option--mode upstream:http://104.199.205.163:8888 I don’t want to link extra servers(104.155.220.54)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mhilscommented, May 28, 2018

I’m sorry, but I don’t understand you question. Can you please rephrase it more clearly?

0reactions
mhilscommented, May 8, 2022

change_upstream_proxy_server does not exist anymore. See https://github.com/mitmproxy/mitmproxy/blob/main/examples/contrib/change_upstream_proxy.py for an alternative.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change upstream proxy for https flow - help - mitmproxy
When make an http request through mitm to an ip echo server I get the ip of “other-proxy” as expected. curl -x localhost:8080...
Read more >
Burp Suite Options: Upstream Proxy Servers - PortSwigger
We can configure this in the "Upstream Proxy Servers" section of the "Options" / "Connections" tab. Click the "Add" button to open the...
Read more >
Dynamically change the proxy mode from regular to upstream ...
I'd like to redirect HTTP requests in the (frontend/downstream) connection between a client and mitmproxy to HTTPS requests in the (backend/ ...
Read more >
Burp Suite 2: Configuring Upstream Proxy - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Chain to Upstream Proxy - Fiddler Classic - Documentation
Close Fiddler Classic application. · Open Internet Explorer > Options > Internet Options > Connections > LAN Settings. · Click the check box...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found