From e4842ef7dfc993a1584059a625d7318eab7d5aad Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 12 Mar 2024 18:33:59 +0100 Subject: [PATCH] be more relaxed on IPv4/IPv6 systems during server listen --- radicale/server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radicale/server.py b/radicale/server.py index 62fe4ef3..70f65334 100644 --- a/radicale/server.py +++ b/radicale/server.py @@ -309,6 +309,10 @@ def serve(configuration: config.Configuration, # macOS: IPv4 address for INET6 address family with # IPV6_V6ONLY set e.errno == errno.EADDRNOTAVAIL or + # Temporary failure in name resolution + # can happen if "hosts" is using eg. "localhost" + # and only resolvable to an IPv4 address + e.errno == -3 or # Address family not supported e.errno == errno.EAFNOSUPPORT or # Protocol not supported