dnscnc/server: Ignore _ questions

This commit is contained in:
Oleksii Shevchuk 2019-09-12 13:57:27 +03:00
parent b5e8277d04
commit 5e28d3ce87
1 changed files with 2 additions and 0 deletions

View File

@ -751,6 +751,8 @@ class DnsCommandServerHandler(BaseResolver):
if len(parts) == 0:
raise DnsPingRequest(1)
elif '_' in data:
raise DnsNoCommandServerException()
elif len(parts) == 1 and parts[0].startswith('ping'):
if len(parts[0]) == 4:
raise DnsPingRequest(15)