mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
merge with stable
This commit is contained in:
commit
287aac4634
@ -49,7 +49,7 @@ def getip():
|
||||
dumbip = socket.gethostbyaddr(socket.gethostname())[2][0]
|
||||
if not dumbip.startswith('127.') and ':' not in dumbip:
|
||||
return dumbip
|
||||
except socket.gaierror:
|
||||
except (socket.gaierror, socket.herror):
|
||||
dumbip = '127.0.0.1'
|
||||
|
||||
# works elsewhere, but actually sends a packet
|
||||
|
Loading…
Reference in New Issue
Block a user