lol still dum

This commit is contained in:
brent s. 2020-05-18 06:47:33 -04:00
parent 8ad2fbff22
commit 1b82e67c93
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -178,8 +178,8 @@ class Tunnel(object):
_ra_xml = _assign_xml.find('ra')
if _ra_xml is not None and self.ra_provider:
tag = _ra_xml.attrib.get('tag', None)
_dns_xml = _assign_xml.find('dns')
_dhcp_xml = _assign_xml.find('dhcpv6')
_dns_xml = _ra_xml.find('dns')
_dhcp_xml = _ra_xml.find('dhcpv6')
if _dns_xml is not None:
do_dns = utils.xml2bool(_dns_xml.text.strip())
domains = [i.strip() for i in _dns_xml.attrib.get('domains', '').split() if i.strip() != '']