Declare DNS support as feature

This commit is contained in:
Brian May 2015-12-14 21:00:31 +11:00
parent eed917f062
commit 6b4e36c528
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class BaseMethod(object):
result = Features()
result.ipv6 = False
result.udp = False
result.dns = True
return result
def get_tcp_dstip(self, sock):

View File

@ -107,8 +107,10 @@ class Method(BaseMethod):
result.ipv6 = True
if recvmsg is None:
result.udp = False
result.dns = False
else:
result.udp = True
result.dns = True
return result
def get_tcp_dstip(self, sock):