Эх сурвалжийг харах

Use getfqdn() instead of gethostname()

Otherwise it would return the naked host name most of the time, especially on Windows.

Review URL: http://codereview.chromium.org/2239010

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48432 0039d316-1c4b-4281-b951-d872f2087c98
maruel@chromium.org 15 жил өмнө
parent
commit
ab89d6f286
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      breakpad.py

+ 1 - 1
breakpad.py

@@ -43,6 +43,6 @@ def CheckForException():
 
 
 if (not 'test' in sys.modules['__main__'].__file__ and
-    socket.gethostname().endswith('.google.com')):
+    socket.getfqdn().endswith('.google.com')):
   # Skip unit tests and we don't want anything from non-googler.
   atexit.register(CheckForException)