Open zhuker opened 2 years ago
The following will only allow ethernet interfaces when gathering candidates
ice.get_host_addresses(block_list=["eth*"])
It should it be allow_list=["eth*"])
right?
I don't plan on merging this as-is as I can see this leading to a proliferation of options for allowing / blocking not only interfaces but specific addresses. Another option would be to introduce a filter_host_addresses
callable which you can use to do whatever you want. This could in fact superseed the use_ipv4
and use_ipv6
parameters.
The following will ignore all docker interfaces when gathering candidates
The following will only allow ethernet interfaces when gathering candidates