Commit d8c5ea6e authored by Andreas Jung's avatar Andreas Jung

changing 'localhost' to '' only for non-win32 systems

parent 29ac9caf
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
Each server type is represented by a ServerFactory instance. Each server type is represented by a ServerFactory instance.
""" """
import sys
import socket import socket
import ZConfig import ZConfig
...@@ -37,7 +38,7 @@ def get_default_host_info(): ...@@ -37,7 +38,7 @@ def get_default_host_info():
## AJ: We change 'localhost' to '' to force Medusa to use ## AJ: We change 'localhost' to '' to force Medusa to use
## any network interface instead of using only 127.0.0.1. This is ## any network interface instead of using only 127.0.0.1. This is
## a not totally clean solution :-/ See also Collector #1507. ## a not totally clean solution :-/ See also Collector #1507.
if 'localhost' in hostname.lower(): if sys.platform != 'win32' and 'localhost' in hostname.lower():
hostname = '' hostname = ''
_default_host_info = hostname, ip _default_host_info = hostname, ip
......
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