Skip to content

Commit c297f09

Browse files
committed
Fix issue when a CNAME redirects to same CNAME.
This patch fixes #243. Indeed, before this patch, and since we introduced the CNAME follow-up, when a CNAME redicted to the same CNAME or a previous known one in the chain, we were looping over and over. This patch fixes it by always checking if any of the given CNAME was already met. Contributors: * @spirillen
1 parent 0c30718 commit c297f09

File tree

1 file changed

+3
-0
lines changed
  • PyFunceble/query/requests/adapter

1 file changed

+3
-0
lines changed

PyFunceble/query/requests/adapter/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def get_last_cname(subject: str) -> Optional[str]:
132132
.query()
133133
)
134134

135+
if any(x in last_cname_result for x in local_last_cname_result):
136+
break
137+
135138
last_cname_result.extend(local_last_cname_result)
136139

137140
if local_last_cname_result:

0 commit comments

Comments
 (0)