How to add filter to mitmdump while generating har file

I’m trying to create har file while filtering data from specific IP address my command is like this:
mitmdump -s ./ --set hardump=./dump.har ~src
But still see traffic from other devices in dump.har file.
Is my filter wrong?
how can I use the correct one?
Thank you