Commit dc92e331 authored by Amos Latteier's avatar Amos Latteier

Changed ftp server start up to bind to the given ip. Also added a commented...

Changed ftp server start up to bind to the given ip. Also added a commented out stanza showing how to turn on debug logging.
parent 3241fc2b
...@@ -453,6 +453,13 @@ if Zpid and not READ_ONLY: ...@@ -453,6 +453,13 @@ if Zpid and not READ_ONLY:
# Import Zope (or Main), and thus get SOFTWARE_HOME and INSTANCE_HOME # Import Zope (or Main), and thus get SOFTWARE_HOME and INSTANCE_HOME
exec "import "+MODULE in {} exec "import "+MODULE in {}
# Uncomment to turn on Debug Logging
# from ZServer import DebugLogger
# logfile=os.path.join(INSTANCE_HOME,'var/debug.log')
# DebugLogger.log=DebugLogger.DebugLogger(logfile).log
import zLOG import zLOG
from Zope import ZLogger from Zope import ZLogger
...@@ -528,6 +535,7 @@ if HTTP_PORT: ...@@ -528,6 +535,7 @@ if HTTP_PORT:
if FTP_PORT: if FTP_PORT:
zftp = FTPServer( zftp = FTPServer(
module=MODULE, module=MODULE,
ip=IP_ADDRESS,
port=FTP_PORT, port=FTP_PORT,
resolver=rs, resolver=rs,
logger_object=lg) logger_object=lg)
......
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