(flow: dns.DNSFlow)
| 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, |
no outgoing calls