Commit 58c24dcc authored by Jim Fulton's avatar Jim Fulton

Fixed a bug in checking for default port settings.

parent 366142c8
...@@ -562,7 +562,7 @@ else: ...@@ -562,7 +562,7 @@ else:
# HTTP Server # HTTP Server
if HTTP_PORT: if HTTP_PORT:
if type(HTTP_PORT) is type(''): HTTP_PORT=((IP_ADDRESS, HTTP_PORT),) if type(HTTP_PORT) is type(0): HTTP_PORT=((IP_ADDRESS, HTTP_PORT),)
for address, port in HTTP_PORT: for address, port in HTTP_PORT:
hs = zhttp_server( hs = zhttp_server(
ip=address, ip=address,
...@@ -586,7 +586,7 @@ if HTTP_PORT: ...@@ -586,7 +586,7 @@ if HTTP_PORT:
# FTP Server # FTP Server
if FTP_PORT: if FTP_PORT:
if type(FTP_PORT) is type(''): FTP_PORT=((IP_ADDRESS, FTP_PORT),) if type(FTP_PORT) is type(0): FTP_PORT=((IP_ADDRESS, FTP_PORT),)
for address, port in FTP_PORT: for address, port in FTP_PORT:
FTPServer( FTPServer(
module=MODULE, module=MODULE,
...@@ -625,7 +625,7 @@ if FCGI_PORT and not READ_ONLY: ...@@ -625,7 +625,7 @@ if FCGI_PORT and not READ_ONLY:
# Monitor Server # Monitor Server
if MONITOR_PORT: if MONITOR_PORT:
if type(MONITOR_PORT) is type(''): if type(MONITOR_PORT) is type(0):
MONITOR_PORT=((IP_ADDRESS, MONITOR_PORT),) MONITOR_PORT=((IP_ADDRESS, MONITOR_PORT),)
for address, port in MONITOR_PORT: for address, port in MONITOR_PORT:
from AccessControl.User import super from AccessControl.User import super
......
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