diff --git a/utils/he_ipv6/tunnel.py b/utils/he_ipv6/tunnel.py index 7487d83..b12a720 100644 --- a/utils/he_ipv6/tunnel.py +++ b/utils/he_ipv6/tunnel.py @@ -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() != '']