| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -329,6 +329,7 @@ def async_mark_unique_records_older_than_1s_to_expire( | |||
| 329 | 329 | self._async_set_created_ttl(record, now, 1) | |
| 330 | 330 | ||
| 331 | 331 | def _async_set_created_ttl(self, record: DNSRecord, now: _float, ttl: _int) -> None: | |
| 332 | + """Stamp a record with a new ttl and creation moment, then cache it.""" | ||
| 332 | 333 | # It would be better if we made a copy instead of mutating the record | |
| 333 | 334 | # in place, but records currently don't have a copy method. | |
| 334 | 335 | record._set_created_ttl(now, ttl) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,6 +148,7 @@ def is_response(self) -> bool: | |||
| 148 | 148 | return (self.flags & _FLAGS_QR_MASK) == _FLAGS_QR_RESPONSE | |
| 149 | 149 | ||
| 150 | 150 | def has_qu_question(self) -> bool: | |
| 151 | + """True when at least one question requests a unicast response.""" | ||
| 151 | 152 | return self._has_qu_question | |
| 152 | 153 | ||
| 153 | 154 | @property | |
| Back | FazBrowse Home | New Git URL |
0 commit comments