Show redundant labels in find_redundant script

This commit is contained in:
Dazzy Ding 2019-05-08 11:10:17 +08:00 committed by Felix Yan
parent a29cf774e9
commit a6364d1f1a
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def find(labelses):
# If child node is a LEAF node,
# current domain must be an existed domain or a subdomain of an existed.
if node[label] == LEAF:
print(f"Redundant found: {domain} at {label}")
print(f"Redundant found: {domain} at {'.'.join(labels)}")
break
else:
# Create a leaf node if current label is last one