aioice icon indicating copy to clipboard operation
aioice copied to clipboard

block/allow interfaces

Open zhuker opened this issue 3 years ago • 2 comments

The following will ignore all docker interfaces when gathering candidates

ice.get_host_addresses(block_list=["docker*"])

The following will only allow ethernet interfaces when gathering candidates

ice.get_host_addresses(block_list=["eth*"])

zhuker avatar Jun 07 '22 03:06 zhuker

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?

sirf avatar Sep 22 '22 06:09 sirf

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.

jlaine avatar Apr 01 '23 12:04 jlaine