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
c3bcf460
Commit
c3bcf460
authored
Jan 13, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1992: unified visible hostname/ip address during the startup
phase for FTP and HTTP servers
parent
9f289726
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/python/ZServer/medusa/ftp_server.py
lib/python/ZServer/medusa/ftp_server.py
+6
-6
No files found.
lib/python/ZServer/medusa/ftp_server.py
View file @
c3bcf460
...
@@ -706,10 +706,10 @@ class ftp_server (asyncore.dispatcher):
...
@@ -706,10 +706,10 @@ class ftp_server (asyncore.dispatcher):
self
.
port
=
port
self
.
port
=
port
self
.
authorizer
=
authorizer
self
.
authorizer
=
authorizer
if
hostname
is
None
:
try
:
self
.
hostname
=
socket
.
gethost
name
()
self
.
hostname
=
socket
.
gethost
byaddr
(
ip
)[
0
]
e
lse
:
e
xcept
socket
.
error
:
self
.
hostname
=
hostname
self
.
hostname
=
ip
# statistics
# statistics
self
.
total_sessions
=
counter
()
self
.
total_sessions
=
counter
()
...
...
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