[CalendarServer-changes] [3939] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 31 13:28:48 PDT 2009


Revision: 3939
          http://trac.macosforge.org/projects/calendarserver/changeset/3939
Author:   sagen at apple.com
Date:     2009-03-31 13:28:47 -0700 (Tue, 31 Mar 2009)
Log Message:
-----------
Use 127.0.0.1 rather than localhost to avoid resolving to an ipv6 address we don't currently support

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tap/caldav.py
    CalendarServer/trunk/conf/caldavd-apple.plist
    CalendarServer/trunk/conf/caldavd-test.plist
    CalendarServer/trunk/conf/caldavd.plist
    CalendarServer/trunk/twistedcaldav/config.py
    CalendarServer/trunk/twistedcaldav/mail.py

Modified: CalendarServer/trunk/calendarserver/tap/caldav.py
===================================================================
--- CalendarServer/trunk/calendarserver/tap/caldav.py	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/calendarserver/tap/caldav.py	2009-03-31 20:28:47 UTC (rev 3939)
@@ -1010,7 +1010,7 @@
 
         if (
             config.Notifications.Enabled and
-            config.Notifications.InternalNotificationHost == "localhost"
+            config.Notifications.InternalNotificationHost == "127.0.0.1"
         ):
             self.log_info("Adding notification service")
 
@@ -1026,7 +1026,7 @@
 
         if (
             config.Scheduling.iMIP.Enabled and
-            config.Scheduling.iMIP.MailGatewayServer == "localhost"
+            config.Scheduling.iMIP.MailGatewayServer == "127.0.0.1"
         ):
             self.log_info("Adding mail gateway service")
 

Modified: CalendarServer/trunk/conf/caldavd-apple.plist
===================================================================
--- CalendarServer/trunk/conf/caldavd-apple.plist	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/conf/caldavd-apple.plist	2009-03-31 20:28:47 UTC (rev 3939)
@@ -379,7 +379,7 @@
         <key>Enabled</key>
         <false/>
         <key>MailGatewayServer</key>
-        <string>localhost</string>
+        <string>127.0.0.1</string>
         <key>MailGatewayPort</key>
         <integer>62310</integer>
         <key>Sending</key>

Modified: CalendarServer/trunk/conf/caldavd-test.plist
===================================================================
--- CalendarServer/trunk/conf/caldavd-test.plist	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/conf/caldavd-test.plist	2009-03-31 20:28:47 UTC (rev 3939)
@@ -419,7 +419,7 @@
       <integer>3</integer>
 
       <key>InternalNotificationHost</key>
-      <string>localhost</string>
+      <string>127.0.0.1</string>
 
       <key>InternalNotificationPort</key>
       <integer>62309</integer>
@@ -532,7 +532,7 @@
         <key>Enabled</key>
         <false/>
         <key>MailGatewayServer</key>
-        <string>localhost</string>
+        <string>127.0.0.1</string>
         <key>MailGatewayPort</key>
         <integer>62310</integer>
         <key>Sending</key>

Modified: CalendarServer/trunk/conf/caldavd.plist
===================================================================
--- CalendarServer/trunk/conf/caldavd.plist	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/conf/caldavd.plist	2009-03-31 20:28:47 UTC (rev 3939)
@@ -376,7 +376,7 @@
         <key>Enabled</key>
         <false/>
         <key>MailGatewayServer</key>
-        <string>localhost</string>
+        <string>127.0.0.1</string>
         <key>MailGatewayPort</key>
         <integer>62310</integer>
         <key>Sending</key>

Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/twistedcaldav/config.py	2009-03-31 20:28:47 UTC (rev 3939)
@@ -258,7 +258,7 @@
 
         "iMIP": {
             "Enabled"          : False, # Server-to-iMIP protocol
-            "MailGatewayServer" : "localhost",
+            "MailGatewayServer" : "127.0.0.1",
             "MailGatewayPort"   : 62310,
             "Username"          : "com.apple.calendarserver", # For account injecting replies
             "Password"          : "",    # For account injecting replies
@@ -304,7 +304,7 @@
     "Notifications" : {
         "Enabled": False,
         "CoalesceSeconds" : 3,
-        "InternalNotificationHost" : "localhost",
+        "InternalNotificationHost" : "127.0.0.1",
         "InternalNotificationPort" : 62309,
         "BindAddress" : "127.0.0.1",
 

Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py	2009-03-31 18:32:06 UTC (rev 3938)
+++ CalendarServer/trunk/twistedcaldav/mail.py	2009-03-31 20:28:47 UTC (rev 3939)
@@ -543,8 +543,8 @@
         port = config.HTTPPort
 
     # If we're running on same host as calendar server, inject via localhost
-    if config.Scheduling['iMIP']['MailGatewayServer'] == 'localhost':
-        host = 'localhost'
+    if config.Scheduling['iMIP']['MailGatewayServer'] == '127.0.0.1':
+        host = '127.0.0.1'
     else:
         host = config.ServerHostName
     path = "inbox"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090331/72fad06b/attachment-0001.html>


More information about the calendarserver-changes mailing list