mirror of
https://github.com/samba-team/samba.git
synced 2025-12-18 08:23:51 +03:00
py/dnsserver: TXTRecord copes with single strings
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
6bd6b2e9f3
commit
3a4cb8679a
@@ -241,6 +241,8 @@ class TXTRecord(dnsserver.DNS_RPC_RECORD):
|
||||
self.dwFlags = rank | node_flag
|
||||
self.dwSerial = serial
|
||||
self.dwTtlSeconds = ttl
|
||||
if isinstance(slist, str):
|
||||
slist = [slist]
|
||||
names = []
|
||||
for s in slist:
|
||||
name = dnsserver.DNS_RPC_NAME()
|
||||
|
||||
Reference in New Issue
Block a user