MCPcopy
hub / github.com/mitmproxy/mitmproxy / _should_resolve

Method _should_resolve

mitmproxy/addons/dns_resolver.py:102–114  ·  view source on GitHub ↗
(flow: dns.DNSFlow)

Source from the content-addressed store, hash-verified

100
101 @staticmethod
102 def _should_resolve(flow: dns.DNSFlow) -> bool:
103 return (
104 (
105 isinstance(flow.client_conn.proxy_mode, mode_specs.DnsMode)
106 or (
107 isinstance(flow.client_conn.proxy_mode, mode_specs.WireGuardMode)
108 and flow.server_conn.address == ("10.0.0.53", 53)
109 )
110 )
111 and flow.live
112 and not flow.response
113 and not flow.error
114 )
115
116 async def resolve(
117 self,

Callers 2

dns_requestMethod · 0.95

Calls

no outgoing calls

Tested by 1