(flow)
| 349 | |
| 350 | |
| 351 | def request(flow): |
| 352 | for check in doh_request_detection_checks: |
| 353 | is_doh = check(flow) |
| 354 | if is_doh: |
| 355 | logging.warning( |
| 356 | '[DoH Detection] DNS over HTTPS request detected via method "%s"' |
| 357 | % check.__name__ |
| 358 | ) |
| 359 | flow.kill() |
| 360 | break |