소스 검색

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
-    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)