mitmproxy icon indicating copy to clipboard operation
mitmproxy copied to clipboard

mitmproxy allow-hosts is not working on domains only works on ip

Open srimanikandan-git opened this issue 2 years ago • 2 comments

Problem Description

In regular mode itself when we give domain name mitmweb --allow-hosts 'google.com' is not working. we give IP instead of domain mitmweb --allow-hosts '142.250.217.78' its working fine. mitmignore is working fine for both domain and ip. Can you please help us to do the allow-host with domain.

Steps to reproduce the behavior:

  1. starting mitmweb with command mitmweb --allow-hosts '142.250.217.78' (its working)
  2. starting mitmweb with command mitmweb --allow-hosts 'google.com' (it is not working)

System Information

Mitmproxy: 9.0.1 Python: 3.11.4 OpenSSL: OpenSSL 3.1.1 30 May 2023 Platform: Windows-10-10.0.22621-SP0

srimanikandan-git avatar Jul 25 '23 15:07 srimanikandan-git

I have the same issue

olezvinskyi avatar Sep 01 '23 08:09 olezvinskyi

Hi @srimanikandan-git , can you make sure you are using a recent version of mitmproxy?

tikolakin avatar May 28 '24 20:05 tikolakin