Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d8c5ea6e
Commit
d8c5ea6e
authored
Oct 15, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changing 'localhost' to '' only for non-win32 systems
parent
29ac9caf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/python/ZServer/datatypes.py
lib/python/ZServer/datatypes.py
+2
-1
No files found.
lib/python/ZServer/datatypes.py
View file @
d8c5ea6e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment