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
3241fc2b
Commit
3241fc2b
authored
Mar 30, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Synced ftp server with Sam's latest. He added contol over interface binding at my request.
parent
9ad9a5ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ZServer/medusa/ftp_server.py
ZServer/medusa/ftp_server.py
+4
-2
lib/python/ZServer/medusa/ftp_server.py
lib/python/ZServer/medusa/ftp_server.py
+4
-2
No files found.
ZServer/medusa/ftp_server.py
View file @
3241fc2b
...
...
@@ -8,7 +8,7 @@
# If you are interested in using this software in a commercial context,
# or in purchasing support, please contact the author.
RCS_ID
=
'$Id: ftp_server.py,v 1.
9 2000/01/14 02:35:56
amos Exp $'
RCS_ID
=
'$Id: ftp_server.py,v 1.
10 2000/03/30 18:03:37
amos Exp $'
# An extensible, configurable, asynchronous FTP server.
#
...
...
@@ -691,10 +691,12 @@ class ftp_server (asyncore.dispatcher):
self
,
authorizer
,
hostname
=
None
,
ip
=
''
,
port
=
21
,
resolver
=
None
,
logger_object
=
logger
.
file_logger
(
sys
.
stdout
)
):
self
.
ip
=
ip
self
.
port
=
port
self
.
authorizer
=
authorizer
...
...
@@ -716,7 +718,7 @@ class ftp_server (asyncore.dispatcher):
self
.
create_socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
self
.
set_reuse_addr
()
self
.
bind
((
''
,
self
.
port
))
self
.
bind
((
self
.
ip
,
self
.
port
))
self
.
listen
(
5
)
if
not
logger_object
:
...
...
lib/python/ZServer/medusa/ftp_server.py
View file @
3241fc2b
...
...
@@ -8,7 +8,7 @@
# If you are interested in using this software in a commercial context,
# or in purchasing support, please contact the author.
RCS_ID
=
'$Id: ftp_server.py,v 1.
9 2000/01/14 02:35:56
amos Exp $'
RCS_ID
=
'$Id: ftp_server.py,v 1.
10 2000/03/30 18:03:37
amos Exp $'
# An extensible, configurable, asynchronous FTP server.
#
...
...
@@ -691,10 +691,12 @@ class ftp_server (asyncore.dispatcher):
self
,
authorizer
,
hostname
=
None
,
ip
=
''
,
port
=
21
,
resolver
=
None
,
logger_object
=
logger
.
file_logger
(
sys
.
stdout
)
):
self
.
ip
=
ip
self
.
port
=
port
self
.
authorizer
=
authorizer
...
...
@@ -716,7 +718,7 @@ class ftp_server (asyncore.dispatcher):
self
.
create_socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
self
.
set_reuse_addr
()
self
.
bind
((
''
,
self
.
port
))
self
.
bind
((
self
.
ip
,
self
.
port
))
self
.
listen
(
5
)
if
not
logger_object
:
...
...
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