Skip to content
Snippets Groups Projects
Commit 4e239b56 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

Merge branch 'buggy_python_deepcopy'

parents 6f7153d0 cf0e64b6
No related branches found
No related tags found
No related merge requests found
dnspython
dnspython==1.11
import dns.message
import dns.rrset
import dns.rcode
import copy
class Entry:
"""
......@@ -64,7 +63,7 @@ class Entry:
def adjust_reply(self, query):
""" Copy scripted reply and adjust to received query. """
answer = copy.deepcopy(self.message)
answer = dns.message.from_text(self.message.to_text())
if 'copy_id' in self.adjust_fields:
answer.id = query.id
if 'copy_query' in self.adjust_fields:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment