Skip to content

Commit 6dd9ef9

Browse files
benlauriepphaneuf
authored andcommitted
Allow for more than one TXT field in the answer.
1 parent 94cfe39 commit 6dd9ef9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/utilities/dnslookup/dnslookup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def GetOne(self, name):
4141
answers = self.Get(name)
4242
assert len(answers) == 1
4343
txt = answers[0]
44-
assert len(txt.strings) == 1
45-
return txt.strings[0]
44+
return ''.join(txt.strings)
4645

4746
def GetSTH(self):
4847
sth_str = self.GetOne('sth')

0 commit comments

Comments
 (0)