Skip to content

Commit

Permalink
Tag is not prioritized address
Browse files Browse the repository at this point in the history
  • Loading branch information
raulikak committed May 24, 2024
1 parent 391e28b commit 08e5277
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcsfw/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def get_prioritized(cls, addresses: Iterable[AnyAddress], ip=True, hw=True, dns=
"""Get prioritized address"""
add = None
for a in addresses:
if a.is_tag():
continue
if not ip and isinstance(a, IPAddress):
continue
if not hw and isinstance(a, HWAddress):
Expand Down

0 comments on commit 08e5277

Please sign in to comment.