You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Query/UdpTransportExecutor.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -160,15 +160,15 @@ public function query($nameserver, Query $query)
160
160
161
161
// ignore and await next if we received an unexpected response ID
162
162
// this may as well be a fake response from an attacker (possible cache poisoning)
163
-
if ($response->getId() !== $request->getId()) {
163
+
if ($response->id !== $request->id) {
164
164
return;
165
165
}
166
166
167
167
// we only react to the first valid message, so remove socket from loop and close
168
168
$loop->removeReadStream($socket);
169
169
\fclose($socket);
170
170
171
-
if ($response->header->isTruncated()) {
171
+
if ($response->tc) {
172
172
$deferred->reject(new \RuntimeException('DNS query for ' . $query->name . ' failed: The server returned a truncated result for a UDP query, but retrying via TCP is currently not supported'));
0 commit comments