Commit 6b4e36c5 authored by Brian May's avatar Brian May

Declare DNS support as feature

parent eed917f0
...@@ -39,6 +39,7 @@ class BaseMethod(object): ...@@ -39,6 +39,7 @@ class BaseMethod(object):
result = Features() result = Features()
result.ipv6 = False result.ipv6 = False
result.udp = False result.udp = False
result.dns = True
return result return result
def get_tcp_dstip(self, sock): def get_tcp_dstip(self, sock):
......
...@@ -107,8 +107,10 @@ class Method(BaseMethod): ...@@ -107,8 +107,10 @@ class Method(BaseMethod):
result.ipv6 = True result.ipv6 = True
if recvmsg is None: if recvmsg is None:
result.udp = False result.udp = False
result.dns = False
else: else:
result.udp = True result.udp = True
result.dns = True
return result return result
def get_tcp_dstip(self, sock): def get_tcp_dstip(self, sock):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment