VirtualBox

Changeset 57987 in vbox


Ignore:
Timestamp:
Oct 1, 2015 1:12:13 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103001
Message:

ValidationKit: improve guessing the relevant FQDN of the system, should help with the incorrect results on Windows 8.1 and Windows Server 2012.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r57968 r57987  
    14351435            try:
    14361436                sHostName = socket.getfqdn()
     1437                if not '.' in sHostName:
     1438                    # somewhat misconfigured system, needs expensive approach to guessing FQDN
     1439                    for aAI in socket.getaddrinfo(sHostName, None):
     1440                        sName, _ = socket.getnameinfo(aAI[4], 0)
     1441                        if '.' in sName and not set(sName).issubset(set('0123456789.')):
     1442                            sHostName = sName
     1443                            break
     1444
    14371445                sHostIP = socket.gethostbyname(sHostName)
    14381446                abHostIP = socket.inet_aton(sHostIP)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette