Changeset 65683 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Feb 8, 2017 2:58:50 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113385
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r65458 r65683 1501 1501 try: 1502 1502 sHostName = socket.getfqdn() 1503 if '.' not in sHostName :1503 if '.' not in sHostName and not sHostName.startswith('localhost'): 1504 1504 # somewhat misconfigured system, needs expensive approach to guessing FQDN 1505 1505 for aAI in socket.getaddrinfo(sHostName, None): 1506 1506 sName, _ = socket.getnameinfo(aAI[4], 0) 1507 if '.' in sName and not set(sName).issubset(set('0123456789.')) :1507 if '.' in sName and not set(sName).issubset(set('0123456789.')) and not sName.startswith('localhost'): 1508 1508 sHostName = sName 1509 1509 break
Note:
See TracChangeset
for help on using the changeset viewer.