Ignoring Domain

I am using mitmproxy in transparent mode and want to only accept a certain IP range.

For example only 192.XX.XX.XX IP’s.

But --ignore-host does not allow me to use regex for IP ranges as I have tried to do the following regex: ^(?!192.\d+.\d+.\d+)

Is it possible to only accept certain ip ranges.


any help with this please?