[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/server/ Zope 3 can
now bind to specified network interfaces only.
Marius Gedminas
marius at pov.lt
Wed Feb 16 12:58:52 EST 2005
Log message for revision 29166:
Zope 3 can now bind to specified network interfaces only.
Changed:
U Zope3/trunk/src/zope/app/server/server.py
U Zope3/trunk/src/zope/app/server/tests/test_server.py
-=-
Modified: Zope3/trunk/src/zope/app/server/server.py
===================================================================
--- Zope3/trunk/src/zope/app/server/server.py 2005-02-16 17:57:19 UTC (rev 29165)
+++ Zope3/trunk/src/zope/app/server/server.py 2005-02-16 17:58:52 UTC (rev 29166)
@@ -41,5 +41,6 @@
return servertype.create(
self.type,
task_dispatcher, database,
- self.address[1],
- self.verbose)
+ ip=self.address[0],
+ port=self.address[1],
+ verbose=self.verbose)
Modified: Zope3/trunk/src/zope/app/server/tests/test_server.py
===================================================================
--- Zope3/trunk/src/zope/app/server/tests/test_server.py 2005-02-16 17:57:19 UTC (rev 29165)
+++ Zope3/trunk/src/zope/app/server/tests/test_server.py 2005-02-16 17:58:52 UTC (rev 29166)
@@ -70,11 +70,11 @@
The settings actually work
>>> my_section.type = 'FTP'
- >>> my_section.address = ('', 8021)
+ >>> my_section.address = ('127.0.0.1', 8021)
>>> my_section.verbose = True
>>> sf = ServerFactory(my_section)
>>> print sf.create(task_dispatcher, db)
- FTP server on *:8021, registered with my task dispatcher,
+ FTP server on 127.0.0.1:8021, registered with my task dispatcher,
serving from my db, verbosity True
That's it.
More information about the Zope3-Checkins
mailing list