[CalendarServer-changes] [3566] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 22 12:22:10 PST 2008


Revision: 3566
          http://trac.macosforge.org/projects/calendarserver/changeset/3566
Author:   sagen at apple.com
Date:     2008-12-22 12:22:10 -0800 (Mon, 22 Dec 2008)
Log Message:
-----------
By default, bind caldav_notifier to local interface

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/config.py
    CalendarServer/trunk/twistedcaldav/notify.py

Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py	2008-12-22 20:09:11 UTC (rev 3565)
+++ CalendarServer/trunk/twistedcaldav/config.py	2008-12-22 20:22:10 UTC (rev 3566)
@@ -295,6 +295,7 @@
         "CoalesceSeconds" : 10,
         "InternalNotificationHost" : "localhost",
         "InternalNotificationPort" : 62309,
+        "BindAddress" : "127.0.0.1",
 
         "Services" : {
             "SimpleLineNotifier" : {

Modified: CalendarServer/trunk/twistedcaldav/notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/notify.py	2008-12-22 20:09:11 UTC (rev 3565)
+++ CalendarServer/trunk/twistedcaldav/notify.py	2008-12-22 20:22:10 UTC (rev 3566)
@@ -32,7 +32,6 @@
 These notifications originate from cache.py:MemcacheChangeNotifier.changed().
 """
 
-# TODO: bindAddress to local
 # TODO: add CalDAVTester test for examining new xmpp-uri property
 
 from twisted.internet.protocol import ReconnectingClientFactory, ServerFactory
@@ -1301,7 +1300,8 @@
         internet.TCPServer(
             config.Notifications.InternalNotificationPort,
             InternalNotificationFactory(notifiers,
-                delaySeconds=config.Notifications.CoalesceSeconds)
+                delaySeconds=config.Notifications.CoalesceSeconds),
+            interface=config.Notifications.BindAddress
         ).setServiceParent(multiService)
 
         return multiService
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081222/02c55163/attachment.html>


More information about the calendarserver-changes mailing list