Commit 819920c9 authored by Andreas Jung's avatar Andreas Jung

added platform check to using os.name instead

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