Commit 29ac9caf authored by Andreas Jung's avatar Andreas Jung

changed too much code

parent 825c5163
...@@ -28,7 +28,7 @@ def get_default_host_info(): ...@@ -28,7 +28,7 @@ def get_default_host_info():
try: try:
ip = socket.gethostbyname(hostname) ip = socket.gethostbyname(hostname)
except socket.error: except socket.error:
hostname = '' hostname = 'localhost'
ip = socket.gethostbyname(hostname) ip = socket.gethostbyname(hostname)
try: try:
hostname = socket.gethostbyaddr(ip)[0] hostname = socket.gethostbyaddr(ip)[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment