瀏覽代碼

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 年之前
父節點
當前提交
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
 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.
   # Skip unit tests and we don't want anything from non-googler.
   atexit.register(CheckForException)
   atexit.register(CheckForException)