code: def _config_win32_add_ifaddr (self, key, name):
          
          try:
              ip, rtype = _winreg.QueryValueEx(key, name)
              if isinstance(ip, basestring) and ip:
                  ip = str(ip).lower()
                  self.localhosts.add(ip)
                  self.interfaces.add(ip)
          except WindowsError:
              pass
docs: Add interface ip address to self.localhosts.